enocean
enocean copied to clipboard
Read EnOcean Chip ID and module version info
The suggested change will add two (read-only) properties to the Communicator
class:
-
chip_id()
which returns the modules chip id (if successful) and -
version_info()
which returns the modules version info (if successful).
The version info is a new data structure, which is defined in the VersionInfo
class in the file version_info.py
.
The enocean_example.py
file has been changed to also display the chip id.
In order for these changes it was necessary to slightly change the way, how the Communicator
waits for the response packet also in the base_id()
property.
Hello @kipe, could you please have a quick look at this pull request? Thanks!