Options for streaming data from arduino to pc via ethernet?

I want to stream data from an Arduino to a PC via Ethernet. I could use MQTT but would depend on a broker. Which options do I have besides of MQTT?

Is there anything stopping you from installing a broker on the PC?

If you are operating in a restricted environment then your sending options are dictated by the listening software you are allowed to run on the PC.

EthernetClient object wraps a TCP socket. A normal TCP socket is connected to IP address and port.
A TCP server listens on a port. If server is contacted by a remote client socket, it creates a local socket connected with the remote client socket and returns a socket object wrapping the socket. Everything you write or print to a EthernetClient is send to that one remote socket.

client socket

   if (client.connect(serverIP, PORT)) {
     client.print("request\n");
     String response = client.readStringUntil('\n');
     Serial.println(response);
     client.stop();
   }

@mikb55 Unfortunatelly a broker based technology is no option for me in this project.

I'd like to use WebSockets but could not find a library other than GPL, LGPL, etc. which are no options for me.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.