Serial output is as this: (sent data is just "S\n")
new client has been connected to server, ip: 10.42.1.2S
␅�␄␂��␁�␂A␁2
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Exception (9):
epc1=0x40105ef0 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000003 depc=0x00000000
>>>stack>>>
ctx: sys
sp: 3fffeb70 end: 3fffffb0 offset: 0190
3fffed00: 3ffe8f6a 3fffed4f 3ffef408 00000002
3fffed10: 40106121 00f3a536 3ffef5b4 00000000
3fffed20: 3ffeed80 3ffef5b4 3ffef408 4020b4a4
3fffed30: 00000000 00eee082 4020e524 000003e8
[...]
The "garbage" is random and some times there is no garbage, I have used memcpy and len to cut the data but some times with some characters (specially the S one) it's prone to crash.
NodemMCU 1.0 Platformio latest version Server example sketch
The data argument has trash on it and some times crash the whole sketch on data reception, example snipet:
Serial output is as this: (sent data is just "S\n")
The "garbage" is random and some times there is no garbage, I have used memcpy and len to cut the data but some times with some characters (specially the S one) it's prone to crash.
Data is sent like this (Linux)