This cleans up some rough edges of the initial version.
Reconnect support introduces better handling of missing or misbehaving wall sockets.
Variable visibility for the internally used ble characteristics just give the reader a slight clue about their (un)importance for them.
Variable access was cleaned up to use the provided setter for cmd and payload.
Some spaghetti code got slightly more readable.
Finally, graceful handling of disconnects is now possible. This allows short lived scripts (e.g. home-assistant components) to access multiple sockets with the same BLE adapter.
This cleans up some rough edges of the initial version.
1. Reconnect support introduces better handling of missing or misbehaving wall sockets.
2. Variable visibility for the internally used ble characteristics just give the reader a slight clue about their (un)importance for them.
3. Variable access was cleaned up to use the provided setter for `cmd` and `payload`.
4. Some spaghetti code got slightly more readable.
5. Finally, graceful handling of disconnects is now possible. This allows short lived scripts (e.g. home-assistant components) to access multiple sockets with the same BLE adapter.
This cleans up some rough edges of the initial version.
cmd
andpayload
.8b7e88db74
.