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
UDP Support #1062
Comments
I'm interested in following as we'll need to bring the code into the esp32 branch. The esp32 network code is cloned off the Linux base, so what every is working for Linux code be ported... |
I assume the ESP32 related changes are way more complex so I would wait for it to be merged to master and I will rebase on top. What do you think? |
@opichals |
For UDP there are updates to the JsNetwork interface which applies and have to be adjusted/synced for all boards netowrk stacks. My hunch is to leave this and add UDP support after the ESP32 stuff is merged. |
Was there any updates on this by the way? I'm curious about some of the new things this might offer, including mDNS. |
@hungryforcodes I am struggling to understand the Espruino's networking stack in detail as the changes affect all boards. Unfortunately I wasn't able to work on this recently. On the positive side I got it working with some limitations including a basic mDNS.js responder (Linux, ESP8266 so far). The mDNS support could prove to be quite limited though due to the small amount of RAM available. |
The esp32 branch has been merged into mainstream, and the network code was cloned from Linux so should be easy to merge. There is more memory on this board so you would not have the same memory limitations as the esp8266 |
@opichals Thanks for the update :) @wilberforce Yes we understand your position on the ESP32 :) |
I think this is probably closable now? |
Sounds all right, I have my minor TODOs elsewhere. |
UDP Support
The purpose of this ticket is to track Espruino native UDP support.
The intention is to loosely follow the node.js
dgram
(https://nodejs.org/api/dgram.html) module API .The development is currently in progress and can be reviewed at master...opichals:espruino-udp
Phase 1
Minimal effort to get UDP working.
Issues
Messages greater than net->chunkSize seem to sometimes freeze the whole esp8266 board. This could be because of heap shortage (wasn't able to verify)
Cleanup
Phase 2
Separating send message packets (separate pull request).
The text was updated successfully, but these errors were encountered: