The use of the ESP8266 in the world of IoT

User avatar
By mrlightsman
#88443 I tried updating to LittleFS. It does not seem to have made a difference. (Updated code posted to original post).

Next, I commented out all use of the RX and TX pins so I could monitor the serial. As expected, the websocket is communicating as expected. When I try to access the webserver, the ESP crashes and either resets or hangs up. I get the following error... "Root requested" is the last serial.println command that responds before the crash. The crash occurs when I call the String I used to build the header in PROGMEM.

Root Requested

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Exception (3):
epc1=0x4000bf64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40266d2b depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffffc80 end: 3fffffc0 offset: 0190
3ffffe10: 00000001 00000001 40266d2b 40218e3b
3ffffe20: 3ffefd98 00000001 3ffefeb8 4020a96d
3ffffe30: 3ffefd98 3ffefd0c 3ffefce8 40218c58
3ffffe40: 00000001 3ffefd0c 3ffefc00 00000001
3ffffe50: 80ff1e70 3ffffea0 00000000 4021951c
3ffffe60: 3ffffec0 3ffffec0 3ffffea0 40205bbc
3ffffe70: 00000001 00000001 3fff1e2c 4021bb1e
3ffffe80: 3ffffec0 3ffefd28 3fff1e2c 401000e1
3ffffe90: 3fff1e2c 3ffefd28 3fff1e2c 40205bf4
3ffffea0: 3ffe0000 40200000 8010047c 80009f65
3ffffeb0: 3fff1e2c 3ffefd28 3ffefce8 4020ae86
3ffffec0: 00b8002f 80c7cef2 81ff2e00 0000008f
3ffffed0: 80005054 c6c7c1e2 40100400 00000003
3ffffee0: 3ffefd28 4bc6a7f0 39581062 00000001
3ffffef0: 00000001 3fff1e2c 4bc6a7f0 00000000
3fffff00: 00000000 00000000 4010047c 3fff0014
3fffff10: 00000001 3ffefd0c 3ffefce8 4020b04f
3fffff20: 00b84d0a 3ffefbe0 3ffefe1c 40214b2d
3fffff30: 00000000 00000001 3ffefdcc 3fff0014
3fffff40: 3fffdad0 00000000 3ffeffd4 4020b115
3fffff50: 40209f54 6f00a8c0 4021bb54 4021bb3c
3fffff60: 007a1200 c6c7e87e 4021bb00 4021bb14
3fffff70: 00000000 feefeffe feefeffe feefeffe
3fffff80: 00000000 00000000 00000001 40100384
3fffff90: 3fffdad0 00000000 3ffeffd4 401003a5
3fffffa0: 3fffdad0 00000000 3ffeffd4 40219f74
3fffffb0: feefeffe feefeffe 3ffe8600 40100eb1
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

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

load 0x4010f000, len 3584, room 16
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld

AM I just running out of memory now? Is it possible the updated library and board definition take that much more memory? Thank you.
User avatar
By mrlightsman
#88468 It seems something with the updated board definition or ide does not like the way I used progmem to store parts of the webpage. I moved them to const char and everything sprang back to life. I don’t know enough to understand why...

Thank you to those who replied. I did migrate to LittleFS. A good tip I did not know about.