basnijholt / miflora

☘️🌑🌼πŸ₯€πŸ‘ Mi Flora Plant sensor Python package
MIT License
362 stars 99 forks source link

Misterious exception: btlewrap.base.BluetoothBackendException #143

Open a-x- opened 4 years ago

a-x- commented 4 years ago

raspberry pi zero w (with ble), uname -a Linux 4.19.75+ #1270 Tue Sep 24 18:38:54 BST 2019 armv6l GNU/Linux

cat /etc/*-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux"

xiaomi mi flower care firmware: 3.2.2

  File "/usr/local/lib/python3.7/dist-packages/miflora/miflora_poller.py", line 127, in firmware_version
    with self._bt_interface.connect(self._mac) as connection:
  File "/usr/local/lib/python3.7/dist-packages/btlewrap/base.py", line 47, in __enter__
    self._backend.connect(self._mac)
  File "/usr/local/lib/python3.7/dist-packages/btlewrap/bluepy.py", line 33, in _func_wrapper
    raise BluetoothBackendException() from last_error
btlewrap.base.BluetoothBackendException
a-x- commented 4 years ago

when I tried pygatt I got another one:

pygatt.backends.bgapi.exceptions.BGAPIError: Unable to auto-detect BLED112 serial port

seems something weird with raspberry in this case