You could start somewhere like this : http://www.cs.rpi.edu/~moorthy/Courses/os98/Pgms/socket.html
To be honest, I probably wouldn't do that. Assuming I will end up wanting to send other chunks of data as well, and each would need to be distinguished from the others, I would use some convenient infrastructure designed for that job. MQTT is one such protocol : http://mqtt.org/ It's another thing to learn, but it provides a lot of facilities for the management of errors (which tends to consume the majority of your code by the time you have something reliable) and is generally easier to use than the lower layers. On Thu, Jul 25, 2019 at 5:40 PM Albert <[email protected]> wrote: > > Hello, I want to send voltage of beaglebone to server (UDP with IP and > port) > > How can I send readLoadCurrent(0) with interval by using code below? > > Thanks, > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beagleboard/9ebd2019-a082-4fd2-a673-d36285fa84e6%40googlegroups.com > <https://groups.google.com/d/msgid/beagleboard/9ebd2019-a082-4fd2-a673-d36285fa84e6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALiMYrtbSGRkDQQO9CDqk%2BXLNUVsYL998aQyM-xanN%3DFisFEpQ%40mail.gmail.com.
