Skip to content

Long commands in telnet #477

Closed
Closed
@mcspr

Description

@mcspr

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);

default

I am a bit fuzzy where exactly this breaks.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions