Switching between wifi_ap and esp_now #172
Unanswered
orbitcoms
asked this question in
Course Qeustions
Replies: 1 comment
-
Hi @orbitcoms, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am wanting to switch between wifi as AP and overe to ESP_Now and later back again etc.
If I start with say wifi initialiazed and running as AP, do I simply do esp_wifi_disconnect() followed by esp_wifi_stop() then can init the espo now and establish connection and to go back I stop the esp-now and run the wifi_ap config again (ie: run wifi init following by wifi_connect_ap).
Will this work, I can re-call the init and connection foir wifi and same with ESP-now over and over as long as I first stop the wifi or esp-now? Or do I also have to do something with the oibject that was configured to be able to run the configuration again?
In addition to my post. Dio I need to turn the wifi off at all? Can I just use my WIFI_AP connecvtion for ESP_NOW as well?
My project only needs to send broadcast data now and then. The AP is serving a web page
Beta Was this translation helpful? Give feedback.
All reactions