Yes, there's no UDP support at the moment. Mainly because very few people have been interested in it - mainly users have been pushing for WebSocket support.
I'd considered adding it via a new flags argument to the connect function. For starters a packet could just be send after each call to write - although distinguishing between packets in read could be more problematic.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, there's no UDP support at the moment. Mainly because very few people have been interested in it - mainly users have been pushing for WebSocket support.
I'd considered adding it via a new
flags
argument to theconnect
function. For starters a packet could just be send after each call towrite
- although distinguishing between packets inread
could be more problematic.