Commit graph

7 commits

Author SHA1 Message Date
Victor Hagelbäck
042447d1a8 Stop recreating the dbus.systemBus on retries (old instances are not disposed correctly by underlying code) 2021-02-28 10:32:17 +01:00
Victor Hagelbäck
e7b8a5a82a Stop write queue when BLE is not connected to avoid loosing commands
- Set max retry count to 10 since BLE loop will set channel to disconnected after 5 retries (or known unrecoverable errors)
2021-02-28 10:32:17 +01:00
Victor Hagelbäck
ca7a5cdd57 Clean up events and subscriptions 2021-02-28 10:20:05 +01:00
Victor Hagelbäck
fb48b1fd1f Split device communication and BLE handling into separate files 2021-02-28 10:18:32 +01:00
Victor Hagelbäck
f93d3854d0 Improve BLE resilience 2021-02-08 19:54:24 +01:00
Victor Hagelbäck
40f79df37e Rename PlejdBLE to PlejdBLEHandler 2021-02-08 07:39:53 +01:00
Victor Hagelbäck
5ac7d9893d Break out main program flow to PlejdAddon class and add catching of init errors with slow retry 2021-02-04 08:08:28 +01:00