Page 1 of 1

Response from the esp8266

Posted: 06 Apr 2017, 19:21
by AndreasK
Hey,
I'm trying to figure out how I can get a response code from the esp8266.
I made an app with App Inventor works very well but now I want to read the actual pin state so I can see in my App.
Do have some experience with Arduino esp8266 but is new to me.
I hope you can give me a tip.
Thanks.
Sorry for my bad English :oops:

Re: Response from the esp8266

Posted: 09 Apr 2017, 21:47
by paxi
You can send the "status" command via http to the esp and parse the pin state from the response. In my automation app it reads like this

Code: Select all

pinstate = substr(response, 64, 1)

Re: Response from the esp8266

Posted: 12 Apr 2017, 16:19
by AndreasK
Thanks paxi,

I will try it.

Danke paxi,

Ich gehe es mal auf diese weiße probieren.