Closed
Description
I was having problem setting long WiFi and MQTT passwords using telnet module. Serial connection works fine typing same things.
Turns out, it is somehow dependant on length and stops working around 32. I inserted small debug message inside telnet/onData to display value of data and len:
client->onData([i](void *s, AsyncClient *c, void *data, size_t len) {
DEBUG_MSG_P(PSTR("[TELNET] Data len: %u\n"), len);
DEBUG_MSG_P(PSTR("[TELNET] Data msg: %s\n"), (char *) data);
_telnetData(i, data, len);
}, 0);
I am a bit fuzzy where exactly this breaks.