Hello, Question about sending voltage through UDP communication (Server <-> Client Communication, Ja

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,

e1.png

e2.PNG

e3.PNG

e4.PNG

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, 25 Jul 2019 09:40:02 -0700 (PDT), Albert
<abt737@gmail.com> declaimed the following:

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?

  Sorry, but I do not see any "code"... I see four IMAGE file attachments
which are unusable for any testing purposes (and aren't even viewable
unless I first save them to my computer and THEN open a picture viewer).

  Please cut&paste the TEXT of your console window or attach a text file.
If it can not be edited (in a text editor) by recipients, it is not usable
for providing solutions. Do you write your code in GIMP or Photoshop? If
you do, how do you execute it?