Right now the sensor sink class requests data at x seconds from all the registered sensors. Instead of this and based on implementing different poll rates for sensors (which is also found in #7 ), the sensors should behave in an asynchronous way and based on a set poll rate, they should push their data to the sensor sink. The poll rate is valid for sensors configured as such; in case of the motion sensor, it should send its state when moved.
Right now the sensor sink class requests data at x seconds from all the registered sensors. Instead of this and based on implementing different poll rates for sensors (which is also found in #7 ), the sensors should behave in an asynchronous way and based on a set poll rate, they should push their data to the sensor sink. The poll rate is valid for sensors configured as such; in case of the motion sensor, it should send its state when moved.