Commit Graph

9 Commits

Author SHA1 Message Date
Maurice Makaay e48e44f287 Implemented the calibration mode and introduced a 'height' value in the mqtt stream, which is (container height - distance measurement). First implementation, so much might still change. I'm thinking about introducing a virtual sensor, but I'm not sure yet what the cleanest implementation will look like. 2020-07-20 02:13:10 +02:00
Maurice Makaay 09f3be6dcb More shuffling of functionality, getting things to match with my standards for 'clean code'. 2020-07-18 14:55:41 +02:00
Maurice Makaay 52b33de7aa Ahhh.. stupid Maurice, forgot to call setup() on the sensors from the new SensorBase. Sensors are back in order now. 2020-07-14 22:05:31 +02:00
Maurice Makaay 19f754b577 Okay, got some things working again. At least the device doesn't crash anymore :-) The sensors need some work to give correct readings in the new setup. It looks like I'm initializing them twice or so. Fix will follow in the next commit. 2020-07-14 15:28:20 +02:00
Maurice Makaay 49115a0545 Stashing this as a feature branch, something's broken in the MQTT department and I first have to find out what. 2020-07-14 01:21:07 +02:00
Maurice Makaay a6e7609d66 Another step towards the new SensorController. It is now also responsible for triggering the measurements based on a simple parameter (after how many seconds to trigger a measurement). 2020-07-13 15:48:13 +02:00
Maurice Makaay c5547b37ee Removed ugly namespace mentioning at namespace closing brace, which was added by the code formatter. 2020-07-12 22:43:35 +02:00
Maurice Makaay a31840c479 Completed moving all code into its own Dough namespace, to prevent naming clashes with stuff like WiFi and DHT11. 2020-07-12 22:41:23 +02:00
Maurice Makaay 3f8eb8b2b8 Going to see if namespaces help structuring the code. 2020-07-12 01:52:08 +02:00