mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 07:16:08 +00:00
receiver
This commit is contained in:
0
ESP32-IDF_ESPNOW-Receiver/build/.ninja_lock
Normal file
0
ESP32-IDF_ESPNOW-Receiver/build/.ninja_lock
Normal file
@@ -26,3 +26,14 @@ void wifi_init()
|
|||||||
ESP_ERROR_CHECK( esp_wifi_set_protocol(ESPNOW_WIFI_IF, WIFI_PROTOCOL_11B|WIFI_PROTOCOL_11G|WIFI_PROTOCOL_11N|WIFI_PROTOCOL_LR) );
|
ESP_ERROR_CHECK( esp_wifi_set_protocol(ESPNOW_WIFI_IF, WIFI_PROTOCOL_11B|WIFI_PROTOCOL_11G|WIFI_PROTOCOL_11N|WIFI_PROTOCOL_LR) );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void transmission_init() {
|
||||||
|
|
||||||
|
esp_err_t espnow_ret = esp_now_init();
|
||||||
|
if (espnow_ret != ESP_OK) {
|
||||||
|
ESP_LOGE(TAG, "esp_now_init() failed: %s", esp_err_to_name(espnow_ret));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ESP_LOGI(TAG, "ESPNOW initialized successfully");
|
||||||
|
|
||||||
|
}
|
Reference in New Issue
Block a user