connect to host and send bytes

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
buzzger0815
Normal user
Posts: 21
Joined: 05 Aug 2020, 17:54

connect to host and send bytes

#1 Post by buzzger0815 » 14 Aug 2020, 12:23

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!

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: connect to host and send bytes

#2 Post by TD-er » 14 Aug 2020, 20:38

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

buzzger0815
Normal user
Posts: 21
Joined: 05 Aug 2020, 17:54

Re: connect to host and send bytes

#3 Post by buzzger0815 » 15 Aug 2020, 15:48

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!

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

Re: connect to host and send bytes

#4 Post by Ath » 15 Aug 2020, 17:53

buzzger0815 wrote: 15 Aug 2020, 15:48 I bought a wifi relais with esp8266,
What exact board did you buy?
/Ton (PayPal.me)

buzzger0815
Normal user
Posts: 21
Joined: 05 Aug 2020, 17:54

Re: connect to host and send bytes

#5 Post by buzzger0815 » 18 Aug 2020, 01:06

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 37 guests