-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long commands in telnet #477
Comments
The limit is 32 and is defined by the STREAM_INJECTOR_BUFFER_SIZE constant in 'code/espurna/libs/StreamInjector.h'. Basically, it defines a ring buffer so when your string is longer than 32 it overwrites the begining of the command and the settings interpreter complains. |
Oops, I've missed the wrapper. Any reason it is 32 and not 128 as EmbedisWrap buffer? espurna/code/espurna/libs/EmbedisWrap.h Line 13 in 57bade3
Serial at least shows errors:
|
No reason except for memory usage. The EmbedisWrap value is the default value for Embedis too. I don't remember but I guess I just copied the signature. Do you have any good reason to have such long commands? |
For me this breaks relatively long |
Good points indeed. I'm changing it to 128. |
Pushed fix to dev branch. Will be released soon. |
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:
I am a bit fuzzy where exactly this breaks.
The text was updated successfully, but these errors were encountered: