The use of the ESP8266 in the world of IoT

User avatar
By joefly888
#17711 I have setting up node.js on my RPI that is linked to WAN, it presently listens for page request on port 8000 and when activated it sends a POST request to a ESP8266 on the LAN to turn on a GPIO pin. This seems like a good solution to secure the ESP8266 to WAN.

My question is what if I want to poll the status pin on ESP8266 using SSL from WAN? Can I do a GET to the RPI from WAN and upon receiving this request, it sends out a GET to the ESP8266 and then transfers this response to the RPI for a response to the original GET from the WAN?

I just want to make sure this concept is correct before I go knocking my brain out on figuring this out..

Thanks