mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-09-30 23:41:05 +00:00
ESP-IDF Robot ESP NOW
This commit is contained in:
@@ -403,6 +403,12 @@ static void espnow_task (void *pvParameter) {
|
||||
espnow_deinit(send_param);
|
||||
vTaskDelete(NULL);
|
||||
}
|
||||
task_status = esp_now_send(send_param->dest_mac, send_param->buffer, send_param->len);
|
||||
if (task_status != ESP_OK) {
|
||||
ESP_LOGE(TAG, "Send error");
|
||||
espnow_deinit(send_param);
|
||||
vTaskDelete(NULL);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ESPNOW_RECV_CB:
|
||||
|
Reference in New Issue
Block a user