Hello,
I am struggling to make use of ESPEasy to send telemetry data using TCP. Receiver is expecting clear text (telnet-like) content.
I've been able to make this work using UDP protocol, using SendToUDP command. To my surprise, there is no similar function for TCP.
Another possibility I've considered is using connectTCP(). However, it is not exposed to end-user and would require altering the code.
Any thoughts?
Sending a plain-text TCP packet
Moderators: grovkillen, Stuntteam, TD-er
Re: Sending a plain-text TCP packet
For sending over TCP, you need to setup a connection.
So I assume you would like something as low-level as a telnet connection?
How often would you like to send such a simple packet?
This also determines whether or not the connection should remain open.
And to be honest I don't really see why it needs to be implemented for TCP too.
Why isn't the UDP version good enough?
So I assume you would like something as low-level as a telnet connection?
How often would you like to send such a simple packet?
This also determines whether or not the connection should remain open.
And to be honest I don't really see why it needs to be implemented for TCP too.
Why isn't the UDP version good enough?
Re: Sending a plain-text TCP packet
Yup, as simple as telnet/netcat/etc. Packet will be sent once per 10-20 minutes, so no need to keep the TCP session open.
Server side is using TCP, this is how it was designed. Unfortunately it is out of my control, so cannot reconfigure it to use UDP.
Re: Sending a plain-text TCP packet
Any ideas?
Who is online
Users browsing this forum: Bing [Bot] and 140 guests