Chat here about code rewrites, mods, etc... with respect to the github project https://github.com/esp8266/Arduino

Moderator: igrr

User avatar
By forlotto
#31062 hrmmm interesting have you tried to read the status of any gpio's?

Well either way I am glad you have gotten it to work correctly.

Oddly I don't understand how on and off without setting the GPIO as an Input or Output works but it must just work like that for the LED using the standard using arduino but I thought you would have to express some kind of port information somewhere maybe it is in your scripting?

I guess I am not certain how everything works with arduino however I am more curious at making this work alone for me there is much more advantage cost wise to have a workable solution without using two devices to rely on instead 1 device preforming the task not only eliminates cost but it eliminates the worry that there is a communication error with one device or another. I do have an arduino and a raspberry pi to mess with some time this winter but getting to know the nodemcu is first on my list even if it takes me all winter ;)
User avatar
By lajolo
#31218 I am not sure that I have understood your question.

My example uses two esp8266 modules because I wanted to set up a communication between the two modules using wifi and I did it with pipes implemented with http GET methods.

In my example one esp module serves the web page with On and Off buttons and turns on and off a led accordingly.
On this module there is of course one GPIO declared as output and connected to the led through a current limiting resistor.

The other esp module serves an identical web page, but when the On and Off buttons are pressed, the information is sent to the previous esp module.

The http GET method sends a string and hence it can be used to send the status of GPIOs from one esp module to another.
Hope this answers your question.
User avatar
By forlotto
#31287 yep sure has I get where you are going with it no worries I actually figured out after I made the post and reread your posting but thank you much for the answer as I am sure it will help someone along the line.