mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-18 12:48:55 +00:00
ESP32-C3 RC & Receiver
This commit is contained in:
@@ -103,7 +103,7 @@ void sendData (void) {
|
||||
// Call ESP-NOW function to send data (MAC address of receiver, pointer to the memory holding data & data length)
|
||||
uint8_t result = esp_now_send(receiver_mac, &buffer, sizeof(buffer));
|
||||
|
||||
// If status is NOT OK
|
||||
// If status is NOT OK, display error message and error code (in hexadecimal).
|
||||
if (result != 0) {
|
||||
ESP_LOGE("ESP-NOW", "Error sending data! Error code: 0x%04X", result);
|
||||
deletePeer();
|
||||
|
Reference in New Issue
Block a user