Tasmota TCP client- not sure if possible

88 views
Skip to first unread message

MNO

unread,
Sep 13, 2022, 5:41:42 AM9/13/22
to TasmotaUsers
Hi All
I have specific use case and trying to wrap my head around it.
I have a device that sends out all logs on TCP server on ip192.168.0.10 on port 10000.
That device on start of process logs start always with same string.
I want that tasmota on esp32 triggers on that line and turn a Led strip light for 10s.

Probably i can easy do that on node-red by conecting as tcp client and forward it toesp32 via mqtt, but i think is waste of resources...

Is there any way to conect to TCP server and listen to it till that string is there and trigger on it

Stephan Hadinger

unread,
Sep 13, 2022, 6:15:20 AM9/13/22
to TasmotaUsers
So you want Tasmota to listen on 192.168.0.10 port 10000?

If so, yes it's possible. Take a look at Berry tcp server https://tasmota.github.io/docs/Berry/#tcpserver-class

MNO

unread,
Sep 13, 2022, 7:03:22 AM9/13/22
to TasmotaUsers
is more like i want tasmota connect to server on 192.168.0.10 on port 10000 and wait for server to send message

can that be done also with Berry
Reply all
Reply to author
Forward
0 new messages