inofix / lifebase-meter

MIT License
3 stars 1 forks source link

Clean Up #6

Open zwischenloesung opened 4 years ago

zwischenloesung commented 4 years ago

Do some clean up and refactoring in the code to unify everything.

zwischenloesung commented 4 years ago

Basically the idea is to move the routines into separate objects, so that we can have several similar sensors or actuators and that different communication channels can be notified (e.g. by observer subscibtion). So for a specific sensor datum (e.g. soil moisture), we could have several observers (e.g. status-led, MQTT, BLE, and watering-pump).