Jakeler / ble-serial

"RFCOMM for BLE" a UART over Bluetooth low energy (4+) bridge for Linux, Mac and Windows
https://blog.ja-ke.tech/tags/#bluetooth
MIT License
251 stars 37 forks source link

FutureWarning: Pass the disconnected callback to the BleakClient constructor #79

Closed Jakeler closed 1 year ago

Jakeler commented 1 year ago

Describe the bug Deprecated bleak usage.

Log messages

ble_serial/bluetooth/ble_interface.py:28: FutureWarning: This method will be removed future version, pass the callback to the BleakClient constructor instead.
  self.dev.set_disconnected_callback(self.handle_disconnect)

Setup (please complete the following information):

Additional Context since: https://github.com/hbldh/bleak/releases/tag/v0.18.0