ESP-NOW Transmitter

This commit is contained in:
2025-06-18 00:29:54 -04:00
parent e45f19b250
commit 8b2900e03f

View File

@@ -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",