AP turned off when esp_smartconfig_start(sc_callback), and turned on back when esp_smartconfig_stop()

nzh912
Posts: 23
Joined: Mon Mar 25, 2019 4:27 am

AP turned off when esp_smartconfig_start(sc_callback), and turned on back when esp_smartconfig_stop()

Postby nzh912 » Mon Mar 25, 2019 6:15 am

Does anyone tried out,using Smartconfig to configure the WiFI SSID and Password, at the same time running AP mode on the ESP32?
i'm trying to implement both STA(Smartconfig) and AP mode on the ESP32. I want my devices turning on wifi AP all the time without turning off during WiFI SSID and Password configuration using Smart Config.

When i turned on the ESP32, it created AP at the startup with no issue. But the AP was turned off while executing the esp_smartconfig_start(sc_callback); /*" sc: SC_STATUS_FINDING_CHANNEL"*/
The AP turned on again after the Smartconfig configuration is over.

Anyone can let me know whether is it is a bug, or during smart config finding the channel, the AP definitely will turn OFF? or how to solve this problem.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: AP turned off when esp_smartconfig_start(sc_callback), and turned on back when esp_smartconfig_stop()

Postby WiFive » Tue Mar 26, 2019 3:22 am

Yes during the channel scan the AP would not be available, unless maybe both esp32 and the phone are on channel 1 already. If the phone is connected to esp32 ap, then why use smartconfig? They can already talk directly.

nzh912
Posts: 23
Joined: Mon Mar 25, 2019 4:27 am

Re: AP turned off when esp_smartconfig_start(sc_callback), and turned on back when esp_smartconfig_stop()

Postby nzh912 » Tue Mar 26, 2019 7:34 am

WiFive wrote:
Tue Mar 26, 2019 3:22 am
Yes during the channel scan the AP would not be available, unless maybe both esp32 and the phone are on channel 1 already. If the phone is connected to esp32 ap, then why use smartconfig? They can already talk directly.
okay, Thank you :D :D

Who is online

Users browsing this forum: Bing [Bot], KaosESP32 and 169 guests