mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-19 17:09:04 +00:00
ESP-NOW-Transmitter
This commit is contained in:
@@ -38,7 +38,7 @@ static const char *TAG = "ESP-NOW_Transmitter";
|
|||||||
|
|
||||||
static QueueHandle_t s_example_espnow_queue = NULL;
|
static QueueHandle_t s_example_espnow_queue = NULL;
|
||||||
|
|
||||||
static uint8_t receiver[ESP_NOW_ETH_ALEN] = {0xE4, 0xB0, 0x63, 0x17, 0x9E, 0x45}; // MAC address of Receiver device
|
//static uint8_t receiver[ESP_NOW_ETH_ALEN] = {0xE4, 0xB0, 0x63, 0x17, 0x9E, 0x45}; // MAC address of Receiver device
|
||||||
|
|
||||||
static uint8_t s_example_broadcast_mac[ESP_NOW_ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
|
static uint8_t s_example_broadcast_mac[ESP_NOW_ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
|
||||||
static uint16_t s_example_espnow_seq[EXAMPLE_ESPNOW_DATA_MAX] = { 0, 0 };
|
static uint16_t s_example_espnow_seq[EXAMPLE_ESPNOW_DATA_MAX] = { 0, 0 };
|
||||||
@@ -407,4 +407,6 @@ void app_main(void)
|
|||||||
|
|
||||||
wifi_init();
|
wifi_init();
|
||||||
esp_now_init();
|
esp_now_init();
|
||||||
|
|
||||||
|
memcpy(peerInfo.peer_addr, receiver_mac, 6);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user