-
Notifications
You must be signed in to change notification settings - Fork 47
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
Connection to ESP8266 seems to be unreliable #65
Comments
@jstoezel I have transferred the issue to the s3onegpio repository in case you weren't notified by GitHub. For the first issue, Scratch3 does not provide any external notification for the extension to use when the user hits the Stop button. In Scratch2 they did provide this facility, but for some curious reason removed it in Scratch3. I have documented the "approved" method of shutdown here. For the second issue, I am not able to reproduce this in either Windows or Ubuntu Linux. If you can provide a Scratch script that demonstrates the issue, that would be of great help. Thanks. |
May I close this issue or do you still need some help? |
I am closing this issue because I did not receive a reply to my previous posts., If you feel it still needs to be open, please leave a comment here and I will reopen it. |
Hello,
Thank you very much for providing this extension to Scratch3! This is a great initiative.
When working with Scratch3 offline and an ESP8266, I am observing an unreliable connection which makes it almost impossible to exchange data.
I am using Telenetrux-ESP8266 firmware version 1.5 and the currently released version of s3e.
The ESP-8266 connects to the Wifi Network and the TCP server waits for connections. s3e seems to start and run happily.
I can see a connection coming in on the firmware side whenever I start the Scratch3 script ("Client connected to address:...".
In Wireshark I can see packets being exchanged between the ESP8266 and the Scratch3 script. So far, so good.
The first issue happens when I stop the Scratch3 script: the connection to the server does not appear to be detected as closed by the firmware. Even though the script is stopped, the firmware continues to report to the remote client, I can see packets being sent from the ESP-8266 to the client. The firmware only sees a closed connection when I manually stop s3e (ctrl+C). It looks like the "stop_reports" variable is not set on the firmware side, and the connection is not seen as closed as well.
The second issue is that when I stop the scratch script I am unable to communicate with the firmware again even though I start the Scratch script, and reinitialize the connection. I need to kill s3e, start it again, kill Scratch3 and start it again. This seems to be linked to the first issue, where the connection between the client and the server is not closed when the Scartch3 script stops.
Do you have an idea of what the issue might be, and how to fix it?
Regards,
JS
The text was updated successfully, but these errors were encountered: