-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Description
I have developed a program that boots into an AP to allow you to enter credentials needed for MQTT broker and wifi etc.
Once the credentials have been saved using SPIFFS, the program will then connect to MQTT and carry on, or it should do, I was getting exception 29 and narrowed it down to ESP8266WebServer was conflicting.
`Exception (29):
epc1=0x4000e1b2 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000100 depc=0x00000000
ctx: cont
sp: 3fff2b60 end: 3fff30c0 offset: 01a0
stack>>>
3fff2d00: 00020202 00000000 00000000 4022c2b7
3fff2d10: 3fffba1c 3fff715c 3fff7444 4022c450
3fff2d20: 00000000 ffffffff 3fffba0c 3fff715c
3fff2d30: 00000040 3fff715c 3fff9d3c 4022c84d
3fff2d40: 3fff755c 3fff715c 3fff9d3c 4022d244
3fff2d50: 3fff71ec 35055c08 5b929020 00000001
3fff2d60: 3fff715c 3fff4c8c 3fff9d3c 00000001
3fff2d70: 00000010 3fff715c 0000000f 4022d4b5
3fff2d80: 3fff7444 3fff742c 0000000f 00000001
3fff2d90: 00000001 3fff7774 41f3a73c 4022c31c
3fff2da0: 00000100 3fff4fbf 3fff4fbf 00000000
3fff2db0: 00000100 3fff4fbf 3fff71bc 4022e660
3fff2dc0: 00000000 000000d0 3fff2df0 00000030
3fff2dd0: 29105076 9199df31 5996515b 00000004
3fff2de0: 00000004 3fff4efc 3fff4fb9 4022a73e
3fff2df0: 16f10203 1236ade7 7c9da7b8 b1a7f801
3fff2e00: 3929f22d 22ec2af4 f2b67d79 390f24dc
3fff2e10: dfbf7c55 1a6d1648 e4e199fe 5076b44e
3fff2e20: 00000004 3fff4fb9 3fff4efc 4022ab3d
3fff2e30: 40235b33 4a9711d7 debd6f0a 40235b41
3fff2e40: 40208f07 00000004 00000004 00000000
3fff2e50: 3fff4fbd 3fff4fb9 3fff6aa4 00001500
3fff2e60: 00001553 3fff64ff 0000000c 00000004
3fff2e70: 3fff4efc 3fff4fb9 00000004 00000004
3fff2e80: 00000004 3fff4fb9 3fff4efc 4022a574
3fff2e90: 00000000 3fff4fb9 3fff4efc 4022a8d8
3fff2ea0: 3ffea4b8 3fff324c 3fff4efc 4022928c
3fff2eb0: 3fff2ef0 0000000e 00000010 00000000
3fff2ec0: 00000000 3fff324c 3fff4efc 00001387
3fff2ed0: 001bd461 3fff4efc 3fff321c 4022a6aa
3fff2ee0: 3fff1f58 3fff1f10 3fff321c 4020935c
3fff2ef0: 3fff4bac 3fff1f10 3fff1f10 402087c6
3fff2f00: c64b3025 00000000 4020d68c 00000000
3fff2f10: 3fff1c78 000022b3 3fff1f10 402094ee
3fff2f20: 3ffe9f18 c64b3025 72746e45 6e655379
3fff2f30: 000000dd 000022b3 3fff1f10 40208745
3fff2f40: 3ffe9f18 c64b3025 3ffe9f18 c64b3025
3fff2f50: 3ffe9820 3fff40d4 3fff416c 00000000
3fff2f60: 3fff32a4 3fff1dd4 00000000 40209504
3fff2f70: 00000010 3fff1dd4 00000000 4020ba15
3fff2f80: 00000031 00000031 3ffe925d 3fff2090
3fff2f90: 3fff1c14 3fff1cdc 00000000 4020ca19
3fff2fa0: 3ffe8c78 3fff1dd4 3fff2064 3fff2090
3fff2fb0: 3fffdad0 3fff1dd4 3fff2064 4020bb68
3fff2fc0: 00000000 00000000 3fff2064 4020ca90
3fff2fd0: 00000034 3fff1dd4 3fff2064 40207045
3fff2fe0: 3fff301e 00000000 3fff1dd4 4020727a
3fff2ff0: 402084a4 3fff4ca0 3fff301d 4020cb2d
3fff3000: 3fff2064 0000000a 00000003 4020cbc6
3fff3010: ff4b843f 00000001 3ffe8c79 4020ec88
3fff3020: 40212400 00000003 3ffe9747 3fff1da4
3fff3030: 3fff1db0 00000004 3fff2064 4020ca19
3fff3040: 3ffe8c78 ffffffd0 3fff2064 4020ca19
3fff3050: 3ffe9744 ffffffd0 3fff2064 4020ca44
3fff3060: 0000000a 00ffffff 3fff2064 4020988c
3fff3070: 3fff1db0 ffffffd0 3fff2064 4020780d
3fff3080: 3ffe9f18 0c01a8c0 00000000 4020e690
3fff3090: feefeffe feefeffe feefeffe 3fff2090
3fff30a0: 3fffdad0 00000000 3fff2088 4020d6d8
3fff30b0: feefeffe feefeffe 3fff20a0 40100718
<<<stack<<<
ets Jan 8 2013,rst cause:4, boot mode:(1,6)
wdt reset
ets Jan 8 2013,rst cause:4, boot mode:(1,6)
wdt reset`
I have tried putting it all in one individual function that is only called if wifi was not successful and get:
In lambda function:
IntelliLanEntrySenseESPDevConfs:375:
error: 'server' is not captured
I have tried recoding a program that took weeks to get sorted and nothing works. I have also tried to find a way to destroy the ESP8266WebServer that is defined if Wifi is connected and I have tried moving the define inside of functions that only run when wifi is connected and none of this allows me to destroy the ESP8266WebServer instance and free up the memory or let the rest of the program continue.
The exception 29 happens on connection attempt to the broker, the exact same program without ESP8266WebServer works as expected, can anyone put me out of my misery on how to either not define the server or destroy it if not needed please. Would be really appreciative this is the last thing in a very long project.