SendToHTTP ?

Moderators: grovkillen, Stuntteam, TD-er, enesbcs

Post Reply
Message
Author
User avatar
uxhamby
Normal user
Posts: 132
Joined: 29 Dec 2016, 18:13
Location: Toronto Canada

SendToHTTP ?

#1 Post by uxhamby » 23 Feb 2024, 03:57

Hi,

Is SendToHTTP implemented in RPiEASY?

If so, are there known syntax differences for the use of 'SendToHTTP' in RPEasy, over its use in ESPEasy?

In the 'COMMAND' window on the 'tools' page, I am using the following:
SendToHTTP 192.168.55.131,80, "control?cmd=event,furn1"
which works from ESPEasy but not from RPiEasy.

From RPiEasy, I get the following f/b, on the 'tools' page, after use of the command
True
21:26:40 : nonnumeric port: '80 "control'
21:36:04 : CMD: SendToHTTP 192.168.55.131,80, "control?cmd=event,furn1"
21:36:04 : nonnumeric port: '80 "control'
21:41:08 : CMD: SendToHTTP 192.168.55.131,80, "control?cmd=event,furn1"
21:41:08 : nonnumeric port: '80 "control'
Thoughts or suggestions?

Thanks,

Brian H.

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

Re: SendToHTTP ?

#2 Post by Ath » 23 Feb 2024, 09:01

Most likely the space between the comma and the quote after 80 is unexpected (just guessing, btw)
/Ton (PayPal.me)

User avatar
uxhamby
Normal user
Posts: 132
Joined: 29 Dec 2016, 18:13
Location: Toronto Canada

Re: SendToHTTP ?

#3 Post by uxhamby » 23 Feb 2024, 20:11

Nope.

Works with or without the space in ESPEasy, doesn't work with or without the space in RPiEasy.

Thanks,

Brian H.

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

Re: SendToHTTP ?

#4 Post by Ath » 22 Mar 2024, 15:25

Did (finally :oops:) have a quick look at the RPiEasy sources, and it seems you need to include a / in the url part, and not wrap it in quotes, so this should work:

Code: Select all

SendToHTTP 192.168.55.131,80,/control?cmd=event,furn1
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests