Page 1 of 1

SendToHTTP ?

Posted: 23 Feb 2024, 03:57
by uxhamby
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.

Re: SendToHTTP ?

Posted: 23 Feb 2024, 09:01
by Ath
Most likely the space between the comma and the quote after 80 is unexpected (just guessing, btw)

Re: SendToHTTP ?

Posted: 23 Feb 2024, 20:11
by uxhamby
Nope.

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

Thanks,

Brian H.

Re: SendToHTTP ?

Posted: 22 Mar 2024, 15:25
by Ath
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