mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-09-30 23:01:07 +00:00
ESP-NOW Transmitter
This commit is contained in:
@@ -87,13 +87,7 @@ void joystick_task(void *arg) {
|
||||
}
|
||||
}
|
||||
|
||||
// Function to delete peer (i.e. when communication error occurs)
|
||||
void deletePeer (void) {
|
||||
uint8_t delStatus = esp_now_del_peer(receiver_mac);
|
||||
if (delStatus != 0) {
|
||||
ESP_LOGE("ESP-NOW", "Could not delete peer");
|
||||
}
|
||||
}
|
||||
|
||||
void statusDataSend(const uint8_t *mac_addr, esp_now_send_status_t status) {
|
||||
if (status == ESP_NOW_SEND_SUCCESS) {
|
||||
ESP_LOGI(TAG, "Data sent successfully to: %02X:%02X:%02X:%02X:%02X:%02X",
|
||||
|
Reference in New Issue
Block a user