Programming the ESP8266
Posted: Sunday 12 June 2016 10:15
Using the ESP8266 chip, a sensor and some programming you can integrate 'other' sensors in Domoticz by defining a virtual sensor. The data is send to Domoticz using a json request.
To program the ESP8266 you can use the programming lanuage Lua as can do within Domoticz or an other language for instance the language used while programming an Arduino, looks like cpp.
Using Lua on a ESP8266 requires to install a LUA interpreter on the soc. Then you can write your program and make your life a lot easier using Esplorer (watch the 's'). In my experience this solution is stabile, but not in the long run. After 3 months or less the ESP8266 crashes.
Programming, compiling and flashing the ESP8266 with platformIO using an Arduino program is a better solution. My sensor now is rock solid.
Anyone with the same experiences?
To program the ESP8266 you can use the programming lanuage Lua as can do within Domoticz or an other language for instance the language used while programming an Arduino, looks like cpp.
Using Lua on a ESP8266 requires to install a LUA interpreter on the soc. Then you can write your program and make your life a lot easier using Esplorer (watch the 's'). In my experience this solution is stabile, but not in the long run. After 3 months or less the ESP8266 crashes.
Programming, compiling and flashing the ESP8266 with platformIO using an Arduino program is a better solution. My sensor now is rock solid.
Anyone with the same experiences?