Page 3 of 3

Re: Send command to ESPEasy via UDP.

Posted: 06 Apr 2025, 19:17
by Smotek7
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.

Re: Send command to ESPEasy via UDP.

Posted: 06 Apr 2025, 19:30
by Ath
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 :?