Search found 3 matches
- Mon Mar 24, 2025 12:26 pm
- Forum: ESP-IDF
- Topic: WiFi cannot change channel after unsuccessful wifi connection
- Replies: 3
- Views: 415
Re: WiFi cannot change channel after unsuccessful wifi connection
Try to stop the WiFi completely before changing the channel:
WiFi.disconnect(true, true); // Disconnect and erase credentials
esp_wifi_stop(); // Stop the WiFi driver
esp_wifi_set_promiscuous(true);
esp_wifi_set_channel(WIFI_CHANNEL, WIFI_SECOND_CHAN_NONE);
esp_wifi_set_promiscuous(false);
esp ...
- Tue Mar 18, 2025 12:32 pm
- Forum: ESP-IDF
- Topic: WiFi cannot change channel after unsuccessful wifi connection
- Replies: 3
- Views: 415
WiFi cannot change channel after unsuccessful wifi connection
Hello,
I have an issue with changing WiFi channels if the ESP32 does not connect to the Wifi. I have made a code to illustrate my issue:
#include <WiFi.h>
#include <esp_wifi.h>
const char* ssid = "Test";
const char* password = "Test";
#define WIFI_CHANNEL 8
void ChangeChannel(){
esp_wifi_set ...
I have an issue with changing WiFi channels if the ESP32 does not connect to the Wifi. I have made a code to illustrate my issue:
#include <WiFi.h>
#include <esp_wifi.h>
const char* ssid = "Test";
const char* password = "Test";
#define WIFI_CHANNEL 8
void ChangeChannel(){
esp_wifi_set ...
- Wed Jan 08, 2025 7:36 pm
- Forum: ESP-IDF
- Topic: ESP NOW and WiFi alternate work
- Replies: 2
- Views: 2682
ESP NOW and WiFi alternate work
Hello,
I am trying to design a fancy switch. Pressing the switch sends a message to the master device via ESP NOW. I also want OTA capability via WiFi on that switch as it will be in a remote place. Because ESP NOW and WiFi cannot work at the same time, my idea is that every hour (SYSTEM_INTERVAL ...
I am trying to design a fancy switch. Pressing the switch sends a message to the master device via ESP NOW. I also want OTA capability via WiFi on that switch as it will be in a remote place. Because ESP NOW and WiFi cannot work at the same time, my idea is that every hour (SYSTEM_INTERVAL ...