Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By JohnFormant
#67135 I have an arduino sketch on my ESP8266 board based on the code on this site:
https://openhomeautomation.net/control- ... -wifi-chip

I have an LED connected to the digital pin and I can switch it on and off from the UI over my local network. I set up port forwarding so that I could do the same from external addresses, and it worked! I had my friend turning the LED on and off from the other end of the country which was cool.

...Then all of a sudden it stopped working. I can still turn it on and off from inside the network, and I can see the UI and press the buttons from outside the network, but when I press the buttons nothing happens.
I can access the aRest API manually and switch the pin on by going to IP_address/digital/5/1. That works. So I'm guessing it's something to do with the aRest UI?

Any suggestions? to have it working and then suddenly stop is worse than if I'd never got it working!

Thanks,
John
User avatar
By JohnFormant
#67289 Quick update on this: I had said I could still switch the pin on and off without the GUI by typing the address of the pin... I can't!

If i unplug the board and plug it in again, SOMETIMES I can switch the LED on once before it stops working. It still works perfectly from within the network. I am so confused! It's not port forwarding issue or anything like that because the interface appears and acts as if the pin has been turned on, it just doesn't actually happen on the device.

Someone must have some idea what's going wrong here???

Thanks,
John