gmag11 / EnigmaIOT

Secure sensor and gateway platform based on ESP8266 and ESP32
https://gmag11.github.io/EnigmaIOT
MIT License
240 stars 46 forks source link

Portal recovery problem #43

Open xelfe opened 2 years ago

xelfe commented 2 years ago

Try with esp32 models;

Code source: https://github.com/gmag11/EnigmaIOT/tree/master/examples/EnigmaIOTGatewayMQTT

Description: When there is no more valid connection to the router and the gateway returns to portal mode, the web server does not display the portal.

logs

*WM: Connecting as wifi client...
*WM: Try to connect with saved credentials
E (7288) wifi:sta is connecting, return error
[E][WiFiSTA.cpp:221] begin(): connect failed!

*WM: SET AP STA
*WM: 
*WM: Configuring access point... 
*WM: EnigmaIoTGateway
[W][WiFiGeneric.cpp:391] _eventCallback(): Reason: 201 - NO_AP_FOUND
*WM: AP IP address: 
*WM: 192.168.4.1
[E][AsyncTCP.cpp:1268] begin(): bind error: -8
*WM: HTTP server started
*WM: About to scan()
*WM: About to scan()
*WM: Scan done
*WM: About to scan()
*WM: About to scan()
*WM: Scan done
[W][GatewayAPI.cpp:379] onNotFound(): 26989 Heap: 199708 404 Not found: /generate_204_1df8d5dd-4364-4223-a4f3-e55fef11ec25
[W][GatewayAPI.cpp:380] onNotFound(): 26989 Heap: 199708 Method: GET
[W][GatewayAPI.cpp:379] onNotFound(): 27036 Heap: 198940 404 Not found: /generate_204
[W][GatewayAPI.cpp:380] onNotFound(): 27036 Heap: 198940 Method: GET
[W][GatewayAPI.cpp:379] onNotFound(): 28175 Heap: 198852 404 Not found: /generate_204_7b4d026c-1ade-41d5-89ec-0ffa4b10b526
[W][GatewayAPI.cpp:380] onNotFound(): 28176 Heap: 198852 Method: GET
[W][GatewayAPI.cpp:379] onNotFound(): 28207 Heap: 200412 404 Not found: /generate_204
[W][GatewayAPI.cpp:380] onNotFound(): 28208 Heap: 200412 Method: GET
[W][GatewayAPI.cpp:379] onNotFound(): 30260 Heap: 200324 404 Not found: /generate_204_023258e7-f9c4-4477-b271-36d16e1cd08f
[W][GatewayAPI.cpp:380] onNotFound(): 30261 Heap: 200324 Method: GET
[W][GatewayAPI.cpp:379] onNotFound(): 30290 Heap: 198948 404 Not found: /generate_204