UDP to Serial Bridge Arduino Examples?
Posted: Mon Jun 20, 2016 3:22 pm
This certainly isn't a new topic here...but I can't seem to find any useful examples about how to implement a UDP to Serial Bridge in Arduino. Most of the Arduino UDP examples I've seen have been bidirectional and rely on receiving data before sending it.
I just want to broadcast sensor data so I can later use it with matlab. So I'm wondering if anyone knows any good examples or has written some arduino code for this.
I'm also open to non-arduino solutions if anyone can think of them -> I'm just most familiar with arduino
Thanks
EDIT: Added the code that I ended up using/working for my application. In case it helps anyone. The code is slightly specific to what I was working on, but maybe it can give someone a place to start. The dynamic dns file does the same thing as the other file... just implemented so you don't have to use static IPs.
I just want to broadcast sensor data so I can later use it with matlab. So I'm wondering if anyone knows any good examples or has written some arduino code for this.
I'm also open to non-arduino solutions if anyone can think of them -> I'm just most familiar with arduino
Thanks
EDIT: Added the code that I ended up using/working for my application. In case it helps anyone. The code is slightly specific to what I was working on, but maybe it can give someone a place to start. The dynamic dns file does the same thing as the other file... just implemented so you don't have to use static IPs.