Page 1 of 1
connect to host and send bytes
Posted: 14 Aug 2020, 12:23
by buzzger0815
Hi there!
Is there a command or a controller with which i can connect to the socket of another host to send bytes to this host?
For example
Code: Select all
connecttoHost,192.168.1.1,12345 // connect to host 192.168.1.1 port 12345
sendtoHost,192.168.1.1,I am connected // sendto (connected) Host the string "I am connected"
senttoHost,192.168.1.1,0xa0 0x1d 0xff // sendto (connected) Host the bytes (in hex notation) a0 1d ff
Thank you!
Re: connect to host and send bytes
Posted: 14 Aug 2020, 20:38
by TD-er
Something like a telnet connection you mean?
We don't have something like that.
If you need to send commands to another ESPEasy node, you could take a look at
sendto
Re: connect to host and send bytes
Posted: 15 Aug 2020, 15:48
by buzzger0815
Yes, something like telnet.
I bought a wifi relais with esp8266, thinking that i can flash espeasy on it and use it. BUT they assembled a whatever microcontroler, which uses the esp8266 only as "wifi card", so no espeasy
But you can connect to the controler on the board and send commands, with which you can switch the relais on or off. So i tought i use espeasy to do the mqtt stuff and switch the relais by espeasy over the microcontroler socket commands.
But if there isn't such a function in espeasy, my plans are busted
But no problem.
Thanks mate!
Re: connect to host and send bytes
Posted: 15 Aug 2020, 17:53
by Ath
buzzger0815 wrote: ↑15 Aug 2020, 15:48
I bought a wifi relais with esp8266,
What exact board did you buy?
Re: connect to host and send bytes
Posted: 18 Aug 2020, 01:06
by buzzger0815
Hi!
I bought this one
http://www.icstation.com/esp8266-wifi-c ... 12593.html
I wanted to use it to control a projector screen with it.
But i now bought a shelly 2.5, flashed espeasy on it and archived my needs, controlling a motorized projector screen via mqtt.