LoopbackB.setConsole() InternalError in TCP connection (Espruino WiFI) #1181
Replies: 15 comments
-
Posted at 2018-08-22 by @gfwilliams Thanks - I just fixed this, so if you wait a few minutes and update a with a 'cutting edge' firmware then you shouldn't have the issue any more |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-22 by Steffen The InternalError is gone, but LoopbackB.setconsole() itself doesn't work. There is no output. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-22 by @gfwilliams Ok, thanks - sorry, I'll look into that |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-28 by César Hi, I have Spruino Wifi 1.99 and connect to port 23 with Putty. If I send something like:
I see it in Putty, but the terminal does not respond to my keys. If I set an event like:
The text entered on putty is printed on the IDE, so the connection is working. Maybe Loopbacks are not working? Thanks Gordon |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-29 by Steffen Hi César, |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-29 by César Hi Steffer, I put the try/catch but it was the same, terminal does not respond. This is my code
When connecting with putty I see:
and nothing else, no response to commands. ... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-29 by Steffen Try using the code from the OP exactly as is. The socket ondata handler definitely spoils it! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-29 by César Ok, I removed the data event. Now, on connecting I get a lot of garbage, something like:
I also modified the try/catch block like this:
and on connecting putty, the IDE shows the "setDeviceClockCmd" error, so it's still there. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-29 by @gfwilliams I have now fixed the issues with Loopback not working on the cutting edge builds (turns out it was related to the addition of Software Serial support). I'm looking into the corruption now - I can reproduce it here too. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-29 by @gfwilliams Ok, so the issue is that the
These really confuse Espruino as they're fed right into the console, and Espruino doesn't know to ignore them. However if you connect using the Chrome App IDE (communications -> connect over TCP address) it won't send the characters and everything works great. You can also use |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-29 by César yes it works! now I can send new code from IDE via wifi :D thanks Gordon. One last thing: First I could not send code because I had the option to "Reset before Send" active. Could you modify the IDE to ignore that option if sending via wireless? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-29 by @gfwilliams Great! In an ideal world I'd be able to make the Telnet service low-level enough that it could survive a reset. It's on my Todo list for Espruino WiFi, but it's not straightforward! I think the easiest option is just to make
Just to post up the complete code that I have (in case it's useful for anyone):
It would actually be possible to check |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-29 by César ok! I will check it. now, how can I combine Telnet with an http server? It doesn't work, and I think I read about that only one server can be created. Is there another solution?, ¿could websockets work? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-29 by @gfwilliams
Yes, unforunately the ESP8266 module's AT command firmware only supports one server at a time.
Yes, totally. I posted this up a while back which serves a full Espruino IDE off of an Espruino WiFi. All you have to do then is modify |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-08-29 by César Interesting, I will definitely check that method, thanks Gordon |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-08-21 by Steffen
In a TCP connection with console piping, LoopbackB.setconsole() throws an error:
Uncaught InternalError: setDeviceClockCmd: Unknown Device 720 at line 1 col 101
If the error is caught (the lines are commented out in the code below) LoopbackB.setconsole() does what it's expected to do.
The code is:
The device is Espruino WiFI on 1.99.
Beta Was this translation helpful? Give feedback.
All reactions