GPIO14 status by http

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Txus
Normal user
Posts: 13
Joined: 10 Apr 2018, 14:48

GPIO14 status by http

#1 Post by Txus » 08 May 2018, 14:14

Hi all,
I use SONOFF TH16 with DHT22 and firmware espeasy 1.20 .
I try to read GPIO14 by http (http://192.168.x.x/control?cmd=status,gpio,14). Answer is "?".

Thank you for your help
GPIO14 problem.JPG
GPIO14 problem.JPG (51.41 KiB) Viewed 3490 times

wim16
Normal user
Posts: 88
Joined: 01 May 2017, 20:35

Re: GPIO14 status by http

#2 Post by wim16 » 09 May 2018, 20:41

According to the wiki the status command is to Get a status set by GPIO/PWM/Servo command.
So, not for reading temp or humidity I guess.

Txus
Normal user
Posts: 13
Joined: 10 Apr 2018, 14:48

Re: GPIO14 status by http

#3 Post by Txus » 09 May 2018, 21:39

Thank you Win16,
I suspected this answer. Please, could anyone give me the best solution to read the temperature and humidity values ​​with http request ?

wim16
Normal user
Posts: 88
Joined: 01 May 2017, 20:35

Re: GPIO14 status by http

#4 Post by wim16 » 09 May 2018, 23:43

You can use a controller to make ESPEasy send the values to some server or maybe query the JSON output.

Txus
Normal user
Posts: 13
Joined: 10 Apr 2018, 14:48

Re: GPIO14 status by http

#5 Post by Txus » 12 May 2018, 21:35

i tried send to my web server from sonoff... and opened an other topic because i think that esp easy doesn't accept requests like http://192.168.1.1/rcgi.bin/UpdateTagFo ... TagValue1= {{NumberField}}
All exemples seen use json syntax.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 57 guests