Smartconfig Doesnt Work After setting Local IP.

ironoman
Posts: 3
Joined: Sat Dec 01, 2018 12:06 pm

Smartconfig Doesnt Work After setting Local IP.

Postby ironoman » Sat Dec 01, 2018 12:29 pm

I have smartconfig Mapped to a button in my device.

I have 2 Functions.
1) Wifi.connect();
2) Smartconfig(); (custom function)

On a restart My device Connects to the previous Wifi with previously stored IP address (Static IP).
Previous IP gets overwritten on smartconfig call. (Ip is stored in EEPROM)

But if i trigger Smartconfig then i get this error.

E (13049) smartconfig: send failed, errno 118

Here is the log

Code: Select all

[D][WiFiGeneric.cpp:345] _eventCallback(): Event: 14 - AP_STOP
[W][WiFiGeneric.cpp:360] _eventCallback(): Reason: 8 - ASSOC_LEAVE
[D][WiFiGeneric.cpp:345] _eventCallback(): Event: 5 - STA_DISCONNECTED
[W][WiFiGeneric.cpp:360] _eventCallback(): Reason: 8 - ASSOC_LEAVE
[D][WiFiGeneric.cpp:345] _eventCallback(): Event: 5 - STA_DISCONNECTED
[W][WiFiGeneric.cpp:360] _eventCallback(): Reason: 8 - ASSOC_LEAVE
Waiting for SmartConfig.
...[D][WiFiSTA.cpp:684] _smartConfigCallback(): Status: FIND_CHANNEL
..[D][WiFiSTA.cpp:684] _smartConfigCallback(): Status: GETTING_SSID_PSWD
[D][WiFiSTA.cpp:687] _smartConfigCallback(): Type: ESPTOUCH
...[D][WiFiSTA.cpp:684] _smartConfigCallback(): Status: LINK
[D][WiFiSTA.cpp:690] _smartConfigCallback(): SSID: PCCUBE
E (13049) smartconfig: send failed, errno 118


If i remove the static ip function call WiFi.config , smartconfig starts working.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 129 guests