Page 1 of 1

WiFi start/stop

Posted: Mon Jun 26, 2017 2:23 am
by Paladin
I've a got a data logging application in which I only need the wifi to come on once an hour to transmit data updates. The esp32 is configured as a station connecting to an access point. Can I simply alternate between esp_wifi_stop() and esp_wifi_start() to accomplish this, or do I need to additionally include esp_wifi_disconnect & esp_wifi_connect()?

Additionally, going through the examples, I've just discovered the smartconfig/ESP-TOUCH example and am eager to implement this as part of the project. from my reading of the example the smart configuration happens at start-up, when the users phone is running the ESP-Touch app, and once the configuration is set, it deletes the configuration task. Is that correct? and is the implication that to set the wifi to a different SSID and password via the app, you'd need to reset the esp32/powercycle?