Send command to ESPEasy via UDP.

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
Smotek7
Normal user
Posts: 222
Joined: 01 Aug 2020, 16:18
Location: SK

Re: Send command to ESPEasy via UDP.

#101 Post by Smotek7 » 06 Apr 2025, 19:17

Guys, I have another question.
Is there a command to send to TCP?
Something like SendToTcp.
I accidentally got a question today whether it is possible to read data from a PV inverter that has Modbus TCP and process it in rules.
In the controller there are only http and udp.

I thought of connecting two ESPs via uart, one as a standard Ser2net, and using the other to send data to uart.

User avatar
Ath
Normal user
Posts: 4330
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Send command to ESPEasy via UDP.

#102 Post by Ath » 06 Apr 2025, 19:30

Ser2Net has support for sending data to the connected TCP device/port using the plugin command ser2netclientsend,<content>. This doesn't have support for the 'mix' type of content.
SendToHTTP, PostToHTTP and PutToHTTP commands use the GET, POST and PUT verbs of the HTTP protocol to transport data to a specific address/port. Not sure if any of those protocols matches your TCP device though :?
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 17 guests