Sunday, June 16, 2019

Easy IOT with ESP8266 and MicroPython using sockets instead of HTML

The problem I've always had with the ESP8266 was that all of the examples showed wrapping the controls in HTML. So - you'll start up a small web server, then decode the GET from the client and run your control logic from there. I don't like that.

I can see certain advantages, if you want to manually control your outputs from your browser, and you want to actually see the state of your inputs, it's great. Have at it. But I don't want to do that - at least not all  of the time. I want an easy way to read the inputs and control the outputs without having to log in with a browser or use some funky CURL.