mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-10 10:23:23 +00:00
ESPNOW + WiFi
This commit is contained in:
@@ -344,8 +344,11 @@ static void display_xy() {
|
||||
while (true) {
|
||||
ESP_LOGI("x,y", "( %d, %d ) [ %d, %d] ", rc_x, rc_y, x, y);
|
||||
uint8_t channel;
|
||||
wifi_band_t *band;
|
||||
esp_wifi_get_channel(&channel, NULL);
|
||||
ESP_LOGE(TAG, "ESP-NOW Channel: %d", channel);
|
||||
esp_wifi_get_band(&band);
|
||||
ESP_LOGI(TAG, "Wi-Fi Channel: %d, Band: %d", channel, band);
|
||||
|
||||
vTaskDelay (1000 / portTICK_PERIOD_MS);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user