SendTo ESP32

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
rol-rider
Normal user
Posts: 43
Joined: 02 Oct 2016, 12:36

SendTo ESP32

#1 Post by rol-rider » 15 Feb 2021, 13:24

Hello, I am always impressed by the evolutions of ESPEAsy, I am currently testing an ESP32 (Devices Touch)
I will want to use the sendTo command. does sendTo command work on ESP32?
here are my logs
EVENT: touch#Touch=67
853878: ACT : sendTo 31,event,lampecouloir
853880: Command unknown: sendTo 31,event,lampecouloir

otherwise,
I don't see a lot of DIY project.
one of my DIY projects with ESPEasy.
8 relay and DS18b20 and 8 input (opto) card (esp32 or wemos)
Image
Image
sorry for my English ! i use google translat.

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

Re: SendTo ESP32

#2 Post by Ath » 15 Feb 2021, 14:50

rol-rider wrote: 15 Feb 2021, 13:24

Code: Select all

EVENT: touch#Touch=67
853878: ACT : sendTo 31,event,lampecouloir
853880: Command unknown: sendTo 31,event,lampecouloir
That SendTo command should be like: (close but no sigar :))

Code: Select all

sendTo 31,event=lampecouloir
/Ton (PayPal.me)

rol-rider
Normal user
Posts: 43
Joined: 02 Oct 2016, 12:36

Re: SendTo ESP32

#3 Post by rol-rider » 15 Feb 2021, 18:50

Code: Select all

On BP#BP=1 do 
sendTo 31,event,lampecouloir
endon
this command works on an S26 socket (esp8266)
but not on ESP32 ?
sorry for my English ! i use google translat.

rol-rider
Normal user
Posts: 43
Joined: 02 Oct 2016, 12:36

Re: SendTo ESP32

#4 Post by rol-rider » 15 Feb 2021, 19:01

with sendTo 31, event=lampecouloir
I have no error but it does not work!

Code: Select all

638219: EVENT: bp#bp=1
638223: ACT : sendTo 31,event=lampecouloir
648999: EVENT: bp#bp=0
649003: ACT : sendTo 31,event=lampecouloir
sorry for my English ! i use google translat.

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

Re: SendTo ESP32

#5 Post by Ath » 15 Feb 2021, 19:21

rol-rider wrote: 15 Feb 2021, 18:50

Code: Select all

On BP#BP=1 do 
sendTo 31,event,lampecouloir
endon
this command works on an S26 socket (esp8266)
but not on ESP32 ?
It can depend on the version of ESPEasy, if that on your Sonoff S26 is dated before November 2019, the argument handling is revamped since then, so the older version will accept/pass on the extra command arguments but the newer version won't. (ESP32 has only been usable/stable since about a year.)

I made a slight mistake in my previous answer, your comma after 'event' is correct but the 2nd argument for 'sendto' needs quotes:

Code: Select all

On BP#BP=1 do 
sendTo 31,"event,lampecouloir"
endon
The SendTo command takes 2 arguments, 1) a unit number and 2) the command to send. If that command involves comma's or spaces, it must be enclosed in quotes (either " ' or ` can be used, double-, single- or back-quotes)
/Ton (PayPal.me)

rol-rider
Normal user
Posts: 43
Joined: 02 Oct 2016, 12:36

Re: SendTo ESP32

#6 Post by rol-rider » 15 Feb 2021, 23:14

Code: Select all

On BP#BP=1 do 
sendTo 31,"event,lampecouloir"
endon
yes, it works thank you ;)
sorry for my English ! i use google translat.

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

Re: SendTo ESP32

#7 Post by TD-er » 04 Jul 2023, 13:04

drewbinsky wrote: 04 Jul 2023, 11:52
rol-rider wrote: 15 Feb 2021, 23:14

Code: Select all

On BP#BP=1 do 
sendTo 31,"event,lampecouloir"
endon
yes, it works thank you ;)
The sendTo command is not a built-in command in ESPEasy
Do you have C013 (ESPEasy p2p) controller included in your build?
And do you have one such controller enabled in ESPEasy?

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests