Hi folks,
I've been learning the basics of Arduino and have set up multipoint sensors around my house and garden using an ESP8266 and sensor components (eg DHT22 to return temp/humidity) and 3d printed housings.
Given the cost of these components (very low), I've got more and more of them, so I'm starting to think about making my code more practical to avoid running back and forward with the devices each time I want to update them, improve code, add features etc.
Question 1) I haven't heard anyone talking about remote flashing of arduino code (ie via wifi), so assume it needs to be com connected?
This being so, I'm thinking about abstracting some of the more common elements I update to my home server and loading these as part of the loop.
ie where I currently have
#define API "0B23323345gfegfg" //api string
#define SensorName "Greenhouse"
Question 2) I'm thinking I could load these off a central database and this'd allow me to add extra devices /update APIs etc.
Would this work?
Appreciate any thoughts on flaws on this/better ways to approach it?