-->
Page 1 of 1

make http request and set variable from return

PostPosted: Tue Jan 16, 2018 8:17 pm
by phphulk
Loving the NodeMCU w/ esp8266. I have setup wifi and http requests but I want to have a "switch" that is a remote php file for instance, that will return true/false or a value. I want to fetch that URL with my nodemcu and then store the result as a variable.

I can't find where to do this anywhere

Re: make http request and set variable from return

PostPosted: Sat Jan 20, 2018 1:28 pm
by martinayotte
This is one of the simplest example :
https://github.com/esp8266/Arduino/blob ... Client.ino