EspruinoWifi - UDP Broadcast ? #4531
Replies: 1 comment
-
Posted at 2017-09-05 by @gfwilliams It's not built-in yet, but I merged some code into Espruino's source code to add native UDP support just a few days ago. The hope is to get the Espruino WiFi specific code added for the 1v95 release. Having said that, you can still send AT commands directly to send the data you want. Just tried this and it works for me:
Posted at 2017-09-05 by @gfwilliams Receiving is more of a pain - and honestly I think you're better off waiting for it to get implemented natively. Posted at 2017-09-05 by Sacha Thanks Gordon Posted at 2017-10-24 by Vasily Hi. I see only few posts about UDP here and surprised a bit. I am wondering if there are any plans to make Alexa integration one day. UDP and broadcasting is the corner stone for that. It is very simple protocol: get UDP broadcast, send UDP broadcast (Alexa discovery protocol) and implement simple webserver URL to on/off light or execute other IoT device commands. What about taking UDP module from Arduino and rewrite it to Java ? Should not be an issue, except localization for hardware of course. Vasily Posted at 2017-10-25 by @gfwilliams There was a bit of a conversation about this in the Patreon video chat last week. UDP is coming to Espruino WiFi (it's already there for ESP32, Linux and ESP8266), and doing stuff like this would be easy enough once that's in. I wasn't aware there was an Alexa protocol though - do you have a link? It seemed that it was just emulating Belkin WeMo sockets Posted at 2017-10-25 by Vasily Hi Gordon. Yes, I mean Belkin WeMo. That is more than enough for any on/off smart switch. I have implemented it into arduino basic language, tested - it works great with Alexa. p.s. I've checked several UDP packages on NPM ... p.p.s. with a friend we are working on making own Alexa smart skill for IoT devices, would love to collaborate and name it "Espruino-IoT" :-) Posted at 2017-10-25 by Vasily I guess I've found working UDP implementation in the forum, I will give a try asap. http://forum.espruino.com/conversations/293517/ Posted at 2017-11-08 by ClearMemory041063 This was done using a Pico connected to an ESP8266 via serial. It does UDP broadcast and the Application Bonjour will see your device. Posted at 2017-11-08 by Vasily txs.. we get progress on using new UDP package implementation... UDP send, receive is working already, send has yet a problem of sending longer than 250+ messages. work in progress. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-09-05 by Sacha
Hi There
Is it possible to broadcast with the EspruinoWifi ?
A simple example sending / receiving would be nice.
Sacha
Beta Was this translation helpful? Give feedback.
All reactions