New method "reset" which sets the dutycycle, workstate, reportmode and so...
New method "reset" which sets the dutycycle, workstate, reportmode and so forth to the factory default, so that use of the sensor by other code will work. Other code often is not able to handle a sensor at startup that is in sleep mode. New property device_path that holds info of the device_path the instance is constructed with. One is able to identify the sensor if more than one sensor is in use. Added a new raise condition in the __send method when sensor is not responding.
Showing with 57 additions and 31 deletions