Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash setting alternate debug output #546

Closed
liebman opened this issue Mar 3, 2018 · 13 comments
Closed

Crash setting alternate debug output #546

liebman opened this issue Mar 3, 2018 · 13 comments
Labels
bug Validated BUG DEV Help Wanted Developer Needs Help Needs Feeback Developer needs feedback
Milestone

Comments

@liebman
Copy link
Contributor

liebman commented Mar 3, 2018

Basic Infos

Hardware

WiFimanager Branch/Release: Development

Hardware: ESP-12f

Core Version: latest git

Description

Changing serial using WiFiManager wifi(Serial1); crashes in the destructor.

Settings in IDE

Module: NodeMcu

Additional libraries: None

Sketch

Standard auto-connect sketch modified to use Serial1 instead of Serial

#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager

void setup() {
    // put your setup code here, to run once:
    Serial.begin(115200);

    //WiFiManager
    //Local intialization. Once its business is done, there is no need to keep it around
    Serial1.begin(115200);
    WiFiManager wifiManager(Serial1);
    //reset saved settings
    //wifiManager.resetSettings();
    
    //set custom ip for portal
    //wifiManager.setAPStaticIPConfig(IPAddress(10,0,1,1), IPAddress(10,0,1,1), IPAddress(255,255,255,0));

    //fetches ssid and pass from eeprom and tries to connect
    //if it does not connect it starts an access point with the specified name
    //here  "AutoConnectAP"
    //and goes into a blocking loop awaiting configuration
    wifiManager.autoConnect("AutoConnectAP");
    //or use this for auto generated name ESP + ChipID
    //wifiManager.autoConnect();

    
    //if you get here you have connected to the WiFi
    Serial1.println("connected...yeey :)");
}

void loop() {
    // put your main code here, to run repeatedly:
    
}

Debug Messages

messages from Serial:

tail 8
chksum 0x2d
csum 0x2d
va2e7c7d0
~ld
*WM: freeing allocated params! 
*WM: unloading 

Exception (3):
epc1=0x40100326 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40249f7d depc=0x00000000

ctx: cont 
sp: 3fff0350 end: 3fff0710 offset: 01a0

>>>stack>>>
3fff04f0:  00000009 0000000c 3fff0550 3ffe911b  
3fff0500:  3ffe8b43 3fff0550 3fff0600 3fff05b0  
3fff0510:  0000001c 0000000a 3ffef5fc 3ffef5fc  
3fff0520:  00000010 0000001c 00000000 40100980  
3fff0530:  402072c4 402072b1 3fff0550 3ffe8a60  
3fff0540:  402477dd 3fff05b0 3ffef608 3ffe8a60  
3fff0550:  00000010 00000000 3ffe911a 4020cc3c  
3fff0560:  3ffe911b 00000000 3fff05b0 3ffef6e4  
3fff0570:  3fffdad0 0001c200 3fffeff0 401004e1  
3fff0580:  3ffe911a 3ffef3d8 3fff1984 401009a8  
3fff0590:  3ffe911b 3ffef608 3fff0600 4020b714  
3fff05a0:  40247836 3ffe911b 3fff0600 402022d6  
3fff05b0:  3fffdad0 00000013 3ffef608 4020b701  
3fff05c0:  4023c146 00000001 feefeff6 4010053a  
3fff05d0:  3fffdad0 0001c200 3fff0600 4010099c  
3fff05e0:  0001c200 0000001c 3fff0600 40203aef  
3fff05f0:  3fffdad0 0001c200 3ffef608 402021c4  
3fff0600:  00000000 00000000 00060200 00000000  
3fff0610:  feef0000 401074a8 00000000 401074a8  
3fff0620:  00000000 401074a8 00000000 401074a8  
3fff0630:  00000000 401074a8 00000000 401074a8  
3fff0640:  00000000 feef5035 3fff16b4 0000000f  
3fff0650:  00000006 3fff16d4 0000000f 00000000  
3fff0660:  3fff16f4 0000000f 00000000 3fff1714  
3fff0670:  0000000f 00000000 00000000 00000000  
3fff0680:  00000000 00000000 00000001 3fff1734  
3fff0690:  0000000f 00000003 feefef03 00000000  
3fff06a0:  00000000 feefef07 ffffffff 01000001  
3fff06b0:  01010100 01000100 feefef01 3ffe911b  
3fff06c0:  3ffe911b 0000effe 01000000 00000000  
3fff06d0:  00000000 feefeffe feefeffe feef0201  
3fff06e0:  3ffef608 00000000 00000000 feefeffe  
3fff06f0:  feefeffe 00000000 3ffef6dc 4020c5cb  
3fff0700:  feefeffe feefeffe 3ffef6f0 40100a2c  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(1,6)


 ets Jan  8 2013,rst cause:4, boot mode:(1,6)

wdt reset

messages from Serial1:

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
va2e7c7d0
~ld
*WM: AutoConnect 
*WM: Connecting as wifi client... 
*WM: wifi station disconnect 
*WM: Connecting to saved AP 
*WM: enableSTA PERSISTENT ON 
*WM: connectTimeout not set, ESP waitForConnectResult... 
*WM: Connection result: WL_CONNECTED
*WM: lastconxresult: WL_CONNECTED
*WM: IP Address: 192.168.0.17
connected...yeey :)
*WM: freeing allocated params! 

Exception (3):
epc1=0x40100326 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40249f7d depc=0x00000000
sp: 3fff0350 end: 3fff0710 offset: 01a0
3fff04f0:  00000009 0000000c 3fff0550 3ffe911b  
3fff0500:  3ffe8b43 3fff0550 3fff0600 3fff05b0  
3fff0510:  0000001c 0000000a 3ffef5fc 3ffef5fc  
3fff0520:  00000010 0000001c 00000000 40100980  
3fff0530:  402072c4 402072b1 3fff0550 3ffe8a60  
3fff0540:  402477dd 3fff05b0 3ffef608 3ffe8a60  
3fff0550:  00000010 00000000 3ffe911a 4020cc3c  
3fff0560:  3ffe911b 00000000 3fff05b0 3ffef6e4  
3fff0570:  3fffdad0 0001c200 3fffeff0 401004e1  
3fff0580:  3ffe911a 3ffef3d8 3fff1984 401009a8  
3fff0590:  3ffe911b 3ffef608 3fff0600 4020b714  
3fff05a0:  40247836 3ffe911b 3fff0600 402022d6  
3fff05b0:  3fffdad0 00000013 3ffef608 4020b701  
3fff05c0:  4023c146 00000001 feefeff6 4010053a  
3fff05d0:  3fffdad0 0001c200 3fff0600 4010099c  
3fff05e0:  0001c200 0000001c 3fff0600 40203aef  
3fff05f0:  3fffdad0 0001c200 3ffef608 402021c4  
3fff0600:  00000000 00000000 00060200 00000000  
3fff0610:  feef0000 401074a8 00000000 401074a8  
3fff0620:  00000000 401074a8 00000000 401074a8  
3fff0630:  00000000 401074a8 00000000 401074a8  
3fff0640:  00000000 feef5035 3fff16b4 0000000f  
3fff0650:  00000006 3fff16d4 0000000f 00000000  
3fff0660:  3fff16f4 0000000f 00000000 3fff1714  
3fff0670:  0000000f 00000000 00000000 00000000  
3fff0680:  00000000 00000000 00000001 3fff1734  
3fff0690:  0000000f 00000003 feefef03 00000000  
3fff06a0:  00000000 feefef07 ffffffff 01000001  
3fff06b0:  01010100 01000100 feefef01 3ffe911b  
3fff06c0:  3ffe911b 0000effe 01000000 00000000  
3fff06d0:  00000000 feefeffe feefeffe feef0201  
3fff06e0:  3ffef608 00000000 00000000 feefeffe  
3fff06f0:  feefeffe 00000000 3ffef6dc 4020c5cb  
3fff0700:  feefeffe feefeffe 3ffef6f0 40100a2c  

 ets Jan  8 2013,rst cause:2, boot mode:(1,6)


 ets Jan  8 2013,rst cause:4, boot mode:(1,6)

wdt reset

Decoded stack:

Exception Cause: 3  [LoadStoreError: Processor internal physical address or data error during load or store]

0x40100326: check_poison at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:821
0x40249f7d: sleep_reset_analog_rtcreg_8266 at ??:?
0x40100980: realloc at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:1720
0x402072c4: ESP8266WiFiSTAClass::begin() at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp:552
0x402072b1: ESP8266WiFiSTAClass::begin() at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp:552
0x402477dd: sleep_reset_analog_rtcreg_8266 at ??:?
0x4020cc3c: Print::write(unsigned char const*, unsigned int) at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/Print.cpp:87
0x401004e1: check_poison at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:857
 (inlined by) check_poison_block at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:847
0x401009a8: free at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:1739
0x4020b714: Print::print(char const*) at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/Print.cpp:87
0x40247836: sleep_reset_analog_rtcreg_8266 at ??:?
0x402022d6: DEBUG_WM<const __FlashStringHelper*, char const*> at /Users/chris.l/Documents/Arduino/libraries/WiFiManager/WiFiManager.cpp:1814
0x4020b701: Print::write(char const*) at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/Print.cpp:87
0x4023c146: wifi_get_opmode at ??:?
0x4010053a: get_unpoisoned at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:942
0x4010099c: free at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:1726
0x40203aef: WiFiManager::~WiFiManager() at /Users/chris.l/Documents/Arduino/libraries/WiFiManager/WiFiManager.cpp:1814
0x402021c4: setup at /var/folders/d7/fkhv_1ns19d8d3sqsttcrj880000gn/T/arduino_modified_sketch_290966/AutoConnect.ino:28
0x401074a8: sntp_get_current_timestamp at ??:?
0x401074a8: sntp_get_current_timestamp at ??:?
0x401074a8: sntp_get_current_timestamp at ??:?
0x401074a8: sntp_get_current_timestamp at ??:?
0x401074a8: sntp_get_current_timestamp at ??:?
0x401074a8: sntp_get_current_timestamp at ??:?
0x4020c5cb: loop_wrapper at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_main.cpp:57
0x40100a2c: cont_norm at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/cont.S:109
@tablatronix
Copy link
Collaborator

hmm this looks exactly like someone else crash

@tablatronix
Copy link
Collaborator

confirmed

@tablatronix tablatronix added the bug Validated BUG label Mar 3, 2018
@tablatronix tablatronix added this to the dev milestone Mar 3, 2018
@tablatronix
Copy link
Collaborator

tablatronix commented Mar 3, 2018

pretty sure I am chaining constructors wrong

// constructors
WiFiManager::WiFiManager(Stream& consolePort):_debugPort(consolePort){
  WiFiManager(); <-- this is not right
}

tablatronix added a commit that referenced this issue Mar 3, 2018
Since I do not know how to fix the delegated constructors properly, this should fix the issue for now
@tablatronix
Copy link
Collaborator

Someone else can fix this properly, I am not sure the correct syntax for delegated constructors, and I couldn't get it to work.

tablatronix added a commit that referenced this issue Mar 3, 2018
@tablatronix
Copy link
Collaborator

should work for now at least

@tablatronix tablatronix added DEV Help Wanted Developer Needs Help Needs Feeback Developer needs feedback labels Mar 3, 2018
@liebman
Copy link
Contributor Author

liebman commented Mar 3, 2018

Works for me now.

@tablatronix tablatronix removed Needs Feeback Developer needs feedback DEV Help Wanted Developer Needs Help labels Mar 4, 2018
@tablatronix
Copy link
Collaborator

Thanks, I figured the constructors out, I was doing it backwards, but I am going to leave the init function the way it is, makes it cleaner if I decide to add more constructors.

@liebman
Copy link
Contributor Author

liebman commented Mar 4, 2018

I found if you erase the flash to force it to run the captive portal, it still crashes, but not when its been configured before. I used the same sketch but erased the flash first. Does not happen if WiFiManager wifiManager(Serial1); is not used.

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
va2e7c7d0
~ld
*WM: AutoConnect 
*WM: Connecting as wifi client... 
*WM: wifi station disconnect 
*WM: No saved credentials, skipping wifi 
*WM: Connection result: WL_NO_SSID_AVAIL
*WM: lastconxresult: WL_NO_SSID_AVAIL
*WM: wifi station disconnect 
*WM: Disabling STA 
*WM: Enabling AP 
*WM: StartAP with SSID:  AutoConnectAP
*WM: AP has anonymous access! 
*WM: SoftAP Configuration 
*WM: -------------------- 
*WM: ssid:             AutoConnectAP
*WM: password:         
*WM: ssid_len:         13
*WM: channel:          1
*WM: authmode:        
*WM: ssid_hidden:     
*WM: max_connection:   4
*WM: beacon_interval:  100(ms)
*WM: -------------------- 
*WM: AP IP address: 192.168.4.1
*WM: setupConfigPortal 
*WM: Starting Web Portal 
*WM: HTTP server started 
*WM: Scan done 
*WM: Config Portal Running, blocking, waiting for clients... 
*WM: NUM CLIENTS: 0 
*WM: -> captive.apple.com 
*WM: <- Request redirected to captive portal 
*WM: <- HTTP Root 
*WM: -> 192.168.4.1 
*WM: Scan done 
*WM: -> captive.apple.com 
*WM: <- Request redirected to captive portal 
*WM: <- HTTP Root 
*WM: -> 192.168.4.1 
*WM: Scan is cached 
*WM: -> captive.apple.com 
*WM: <- Request redirected to captive portal 
*WM: <- HTTP Root 
*WM: -> 192.168.4.1 
*WM: Scan is cached 
*WM: <- HTTP Wifi 
*WM: Scan is cached 
*WM: DUP AP: ThicketLand
*WM: AP:  -29 ThicketLand
*WM: AP:  -33 T3WQBGGB
*WM: AP:  -41 DIRECT-7C-HP ENVY 5660 series
*WM: AP:  -73 TC8717T24
*WM: AP:  -80 FBI Surveillance Van 
*WM: AP:  -80 WIFID216BA
*WM: AP:  -81 Bob's Guest Network
*WM: AP:  -81 Bob's Network
*WM: AP:  -82 Srrrico
*WM: AP:  -87 DIRECT-0WM2070 Series
*WM: AP:  -89 DIRECT-45-HP ENVY 4520 series
*WM: AP:  -91 ZARATE_2GEXT
*WM: Sent config page 
*WM: -> captive.apple.com 
*WM: <- Request redirected to captive portal 
*WM: <- HTTP Root 
*WM: -> 192.168.4.1 
*WM: Scan is cached 
*WM: NUM CLIENTS: 1 
*WM: <- HTTP WiFi save  
*WM: Method: POST
*WM: Sent wifi save page 
*WM: Connecting to a new AP 
*WM: Connecting as wifi client... 
*WM: wifi station disconnect 
*WM: Connecting to new AP 
*WM: enableSTA PERSISTENT ON 
*WM: connectTimeout not set, ESP waitForConnectResult... 
*WM: Connection result: WL_CONNECTED
*WM: lastconxresult: WL_CONNECTED
*WM: Connect to new AP [SUCCESS] 
*WM: Got IP Address: 
*WM: 192.168.0.17 
*WM: disconnect configportal 
*WM: config portal exiting 
connected...yeey :)
*WM: freeing allocated params! 

Exception (3):
epc1=0x40100326 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40249f7d depc=0x00000000

ctx: cont 
sp: 3fff0350 end: 3fff0710 offset: 01a0

>>>stack>>>
3fff04f0:  00000100 40004aa0 00000100 003ff000  
3fff0500:  00000000 400042db 3fffc718 003ff000  
3fff0510:  3ffef5fc 00000346 00000346 4010020c  
3fff0520:  00000020 4024ba40 3fff266c 401009a8  
3fff0530:  40106f2d 3fff2674 000003ff 40107198  
3fff0540:  4023c4ba 4023c486 000003ff 4023c4d7  
3fff0550:  3fff2674 00000000 3ffe911a 4020cc3c  
3fff0560:  000003fd 3ffef6e4 3fff0570 3ffef6e4 <
3fff0570:  3fffdad0 0001c200 3fffeff0 401004e1  
3fff0580:  3ffe911a 3fff3184 00000038 401007f2  
3fff0590:  3fffdad0 3ffef608 3fff0600 4020b714  
3fff05a0:  40247836 3ffe911b 3fff0600 402022d6  
3fff05b0:  3fff318c 00000003 00000001 3fff1ab4  
3fff05c0:  4023c3ce 00000001 feefeff6 4010053a  
3fff05d0:  3fffdad0 0001c200 3fff0600 4010099c  
3fff05e0:  0001c200 0000001c 3fff0600 40203aef  
3fff05f0:  3fffdad0 0001c200 3ffef608 402021c4  
3fff0600:  00000000 00000000 00060200 00000000  
3fff0610:  feef0000 401074a8 00000000 401074a8  
3fff0620:  00000000 401074a8 00000000 401074a8  
3fff0630:  00000000 401074a8 00000000 401074a8  
3fff0640:  00000000 feef5035 3fff1774 0000000f  
3fff0650:  0000000d 3fff1794 0000000f 00000000  
3fff0660:  3fff17b4 0000000f 0000000b 3fff312c  
3fff0670:  0000001f 00000013 00000000 00000000  
3fff0680:  0000f290 0000f2cb 00000001 3fff17f4  
3fff0690:  0000000f 00000003 feefef03 0000000d  
3fff06a0:  0000a1c2 feefef07 ffffffff 01000001  
3fff06b0:  01010100 01000100 feefef01 3ffe911b  
3fff06c0:  3ffe911b 00000000 01000000 0000ea62  
3fff06d0:  00000000 feefeffe feefeffe feef0201  
3fff06e0:  3ffef608 00000000 00000000 feefeffe  
3fff06f0:  feefeffe 00000000 3ffef6dc 4020c5cb  
3fff0700:  feefeffe feefeffe 3ffef6f0 40100a2c  
<<<stack<<<

Decoded:

Exception Cause: 3  [LoadStoreError: Processor internal physical address or data error during load or store]

0x40100326: check_poison at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:821
0x40249f7d: sleep_reset_analog_rtcreg_8266 at ??:?
0x40004aa0: ?? ??:0
0x400042db: ?? ??:0
0x4010020c: _umm_free at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:1291
0x4024ba40: sleep_reset_analog_rtcreg_8266 at ??:?
0x401009a8: free at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:1739
0x40106f2d: __wrap_spi_flash_read at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_phy.c:267
0x40107198: vPortFree at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/heap.c:40
0x4023c4ba: system_param_load at ??:?
0x4023c486: system_param_load at ??:?
0x4023c4d7: system_param_load at ??:?
0x4020cc3c: std::function<void ()>::swap(std::function<void ()>&) at ??:?
0x401004e1: check_poison at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:857
 (inlined by) check_poison_block at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:847
0x401007f2: calloc at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:1695
0x4020b714: Print::print(int, int) at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/Print.cpp:87
0x40247836: sleep_reset_analog_rtcreg_8266 at ??:?
0x402022d6: std::_Function_base::_Base_manager<std::_Bind<std::_Mem_fn<void (WiFiManager::*)()> (WiFiManager*)> >::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at /Users/chris.l/Documents/Arduino/libraries/WiFiManager/WiFiManager.cpp:1814
0x4023c3ce: system_param_save_with_protect at ??:?
0x4010053a: get_unpoisoned at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:942
0x4010099c: free at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:1726
0x40203aef: WiFiManager::~WiFiManager() at /Users/chris.l/Documents/Arduino/libraries/WiFiManager/WiFiManager.cpp:1814
0x402021c4: setup at ??:?
0x401074a8: sntp_get_current_timestamp at ??:?
0x401074a8: sntp_get_current_timestamp at ??:?
0x401074a8: sntp_get_current_timestamp at ??:?
0x401074a8: sntp_get_current_timestamp at ??:?
0x401074a8: sntp_get_current_timestamp at ??:?
0x401074a8: sntp_get_current_timestamp at ??:?
0x4020c5cb: strnlen_P at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/pgmspace.cpp:148
0x40100a2c: cont_norm at /Users/chris.l/Documents/Arduino/hardware/esp8266com/esp8266/cores/esp8266/cont.S:109

@tablatronix
Copy link
Collaborator

Cant reproduce this. Still working for me using staging.

Are you using any parameters?

@tablatronix tablatronix reopened this Mar 4, 2018
@tablatronix
Copy link
Collaborator

@liebman
Copy link
Contributor Author

liebman commented Mar 5, 2018

Not using any parameters.

@tablatronix tablatronix added DEV Help Wanted Developer Needs Help Needs Feeback Developer needs feedback labels Mar 6, 2018
@tablatronix
Copy link
Collaborator

Has this been resolved, is this still an issue?

isots-code added a commit to isots-code/WiFiManager that referenced this issue May 31, 2018
* update library.properties

* clean up parameters

* oops

* clean up .h file

* fix tabs

* fix up parameters

* fixup debugging

* fixes paramid issues

paramid must be alphanumeric and adds {I} token support to use ids as input names if we make that optional.

* debugging clean

* oops

* adds exit to readme

* moved http strings to include, added token flags

* typo

* cleanup

* moved all html strings out of code

* more string tokens

* fix paramscount, oops

* doh...

* tzapu#454 adds WIFI_MANAGER_OVERRIDE_STRINGS

I dont feel like resolving conflicts

* fixup merge

* ajax test

* Bug fix for problem discovered when setting length to 1 for additional parameters

The initialization of the buffer holding the value stopped before the last character and storage did not take into account the extra-byte for end of string.

* debugsoftapconfig for esp32

* make debug funcs public

* fix esp32 examples

* fix esp32 wifi.ssid

* Update README.md

Esp32 warning

* camelcase _staShowStaticFields

* readme

* adds webclient checking for timeout delay

* remove reset, no reason for it

* converting token strings, in progress broken

* all tokens now in strings

* implemented info strings for esp32

* fix some html bugs

* change uptime

* infohelp align html

* added webserver precompiler warning

updates readme

* readme

* template

* Lower RAM usage of library

Place remaining debug messages into Flash using F().

* Update WiFiManager.cpp

* Update WiFiManager.cpp

* Update WiFiManager.cpp

* Create contributing.md

* Create ISSUE_TEMPLATE.md

* rename

* rename

* fix esp32 esp8266 bug

* moved strings to flash

* refactor ip form outputs

* adds disconnect method for users

non persistent disconnect

* publicized debug helpers

* ugh aliases

* moved all tokens to strings.h

* adds toggle for scan quality as percentage

`setScanDispPerc` until we have decent remplating

* oops

* defaulting to icons

* cleanup

* some more strings in progmem

* fix sketch size

* editing strings

* more strings cleanup

* refix memsketch

* more string cleanup

* left in debug

* comments

* typo

* dup define

* moved _wifissidprefix to progmem

* esp32 strings progmem

* strings

* file headers

* missed one file header

* Update ISSUE_TEMPLATE.md

* Update ISSUE_TEMPLATE.md

* documenting source

* change wifiscan detaisl to css for toggling

* more strings progmem

* oops broke lock icons

* bugged

* tzapu#528 adds getLastConxResult

* gitignore

no gitignore? add more stuff

* fix info page and adds esp32 aphostname

* testing tzapu#527

* fixes tzapu#527

* fix tzapu#527 for esp8266

* adds getWiFiIsSaved()

* doc blocks, reformatting code

* stability tzapu#527

* clean up

* remove debugging

* add result checking tzapu#527

* remove debugging

* change some uneeded ints

* feature tzapu#533 failure details

* allow empty ssids, bail earlier

* template update

* debuggin esp32 auth fail events

* tzapu#528

using a static var for esp32 event for now to get this working and test. Probably not the best, not sure what the best option is here for esp32 onevent static member function callbacks

* tzapu#528 WL_DISCONNECTED support for testing

* tzapu#534

* change webserver pointer to using

* remove warning

* fix some minor warnings

* adding menu control, in progress

* fix bug

* finish up menu customization

* fix template

* add param help

* fix up menus

* fix param crash

* fix menu and param save

* fix resetsettings

* adds mdns support

* change defs

* simplify debug

* comments

* fix menuids

* add wifiscan preloading with cache

This uses core scan object and assumes its lifetime, I am not sure what the scope is or how long it lives, will have to convert to local copy if its being lost, caching for 60s after startweb portal and 10s after root load, refresh bypasses cache

* fix order

* add preloadscan enable

* fix webserver pointer

* comments

* tzapu#542 handler

* tzapu#546 fix?

Since I do not know how to fix the delegated constructors properly, this should fix the issue for now

* oops tzapu#546

* adds erase

* add debugging

* remove dnsserver from readme

* adds nvs erase

// #define WM_ERASE_NVS // esp32 erase() will erase NVS

* oops

* adds opt erase flag

* fix savecallback tzapu#543

* fixup tzapu#548

* fix constructor

* move routes to strings

* oops fix constructor again

* remove preallocation of params memory

* init params as null

I started gettting odd exceptions, so I thought this should be null and not on the stack or pointing to garbage. I might be totally in the wrong here.

* fix customhtml parameters

* remove debug

* fixes tzapu#551

* disable ssid input autoformatting

autocorrect='off' autocapitalize='none'

* remove serial.prints

* fix up connection result for ondemand portal

* fix autoreconnect on auth failure

* notes

* fixes tzapu#555 oops

* added debug levels

* add esp shields

* Update README.md

* add WM_RTC def for rtc.h

* Added Custom DNS, fix newlines

* fix tabs

* comments

* oops

* remove testing

* minor layout fix to config

* add setShowDnsFields, adds edge case force hide ip fields

* adds section hrs

* showinfoerase toggle

* kludge setmenu with size so it works

Prboably going to add a vector for this, I do not want to add the overhead of std::array for something optional

* debug remove

* menuids as vector to deal with size

This kind of makes it a pain in the ass for users, not sure how to make this easier, I can take in an array of string ids, with a count arg, makes it easier, but then users can pass nonsense in, this way its enum ids, but damn it sure is convoluted. Welcome to ideas here...

```c++
  std::vector<WiFiManager::menu_page_t> menu = {wm.MENU_WIFI,wm.MENU_INFO,wm.MENU_PARAM,wm.MENU_CLOSE,wm.MENU_SEP,wm.MENU_ERASE,wm.MENU_EXIT};
  wm.setMenu(menu);
```

* adds handleClose

* add bug workaround for esp8266 softap

* oops

* fix debug blank

* travis testing

* change setmenu to take vector or array of strnig tokens

* travis testing

* change varnames

* fixing travis

* datatype fixes

* fix section compile error

* fix compiler warnings

* add esp32

* add esp32

* move menutokens

* add esp32

* add esp32

* fix debug levels

* ugh

* add esp32

* add esp32

* add esp32

* add esp32

* add esp32

* make travis build again

* Delete OnDemandConfigPortal.ino.cpp

Sigh

* fix fsparam spiffs examples for esp32

* spiffs case

* refactor connectwifi, adds save timeout

wifi save now no longer uses settimeout timeout

* fixes tzapu#573

* ugh remove test example

* fix parenths tzapu#573

* add setEnableConfigPortal(boolean enable) - if false dont open condig portal from autoConnect()

* getmodestr, handleerase(bool)

* fix handleerase add softapconfig catch fail

* fix nvs erase

* fix erroneous error debug

* adds chip revision efuse

not sure what use this is, as getChipRevision is usually the same anyway... shrug

* clean up defines, removed stuff for memory

* workaround for esp32 webserver parsearguments bug

* fixup scnanetworks

* fix some error logging

* fixes tzapu#581

adds htmlentities to ssid outputs, limited replacements for now

* comment

* fix savetimeout, too short, made optional

* fix menu output

removed test menu output, removed ref , not sure why I put that there....

* comments, debugging

* fixing up setmenu docblocks
@liebman
Copy link
Contributor Author

liebman commented Aug 6, 2018

No longer an issue.

@liebman liebman closed this as completed Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Validated BUG DEV Help Wanted Developer Needs Help Needs Feeback Developer needs feedback
Projects
None yet
Development

No branches or pull requests

2 participants