Using your preferred method, write the code for your ESP!

You can really choose to control it however you want, and there are amazing people out there doing amazing things with the ESP.

MY particular route was to use a MQTT home server in the form of openHAB that the light would then log on to and listen for colour commands. Using this method also allows me to use amazon Alexa and google home for control extremely easily. (As I said before, I hope to be able to write instructables for that process as I've had a great time doing it but am currently spending most of my free time building a new website (that will probably involve tutorials for those pieces any way)).

I have attached the code for that to this 'ible, above (or below, wherever it appears).

I must say, I used to only develop in arduino IDE for ESP8266 but since I have started this particular project I am definitely being converted over to Lua scripts, they are great and a much less stressful time when uploading and debugging etc.

Once upon a time, I did write a program in arduino that did the following:

ESP boots, can't connect to wifi, starts access point mode

client connects with phone, automatically opens browser with colour control page (basic html)

in the page, there was also an option to connect it to your router.

Once it was on the network, any control system could be programmed to send http requests pretty easily.

If I can find that code somewhere I will upload it, but have recently built a new PC so that file could be on any mixture of drives around the place.