-
Notifications
You must be signed in to change notification settings - Fork 96
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
Add support to connect to a module via TCP & telnet server #35
Conversation
Merge pull request #34 from shing19m/master
The first implementation of a transport is the already known serial port.
This adds support to use a telnet server on the nodemcu based module. The same commands as with serial transport work but beware, do NOT break the telnet server.
Update the README.md to explain the use of the option to connect to the module based on TCP.
Thanks for you work! |
Add support to connect to a module via TCP & telnet server
Hi Eku, can you provide your telnet server code? Or try using the telnet server from this project and try again. Regard |
I'm using the telnet server code from the luatool project. |
Ok, I am puzzled.
|
|
can you publish the output of
this might help me a little |
@shing19m : Please find the output at https://gist.github.com/eku/1b018e2f49e98a7b8ada The udpatesrv.lua and sendfile.py from https://github.com/tjclement/esp-common work for me. |
Hi, esp-common's updatesrv.lua fails with line srv:on("receive", onReceive) because of method not supported. So i cannot verify this. The only clue I got from your files, is that (as in the original code) my code waits for some '>' appear as prompt (either via serial port or socket). The serial port code just continues but the socket code hangs. Sadly i cannot reproduce this with my setting here. can you try the attached diff?
And, sorry to say, I am a little clue less... |
updatesrv.lua uses UDP which has a slighlty different NodeMCU API than TCP. The latest SDK and NodeMCU dev branch requires a strict event driven programming as discussed in this NodeMCU issue. This would explain why I see only the first line of the output from the fsinfo test program. |
Add a lua telnet server that can be run on the nodemcu device. The luatool.py was extended to offer exchangeable transports (serial and tcp) to support all features also via remote telnet sessions.