-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Hi,
Probably not an issue in the script, but do you have any experience of this?
root@raspberrypi:/home/pi/pycalima# python3 cmdline.py -m 58:2b:db:02:37:64 -p 7926XXXX
Traceback (most recent call last):
File "cmdline.py", line 134, in <module>
main()
File "cmdline.py", line 80, in main
fan = Calima(mac_address, pincode)
File "/home/pi/pycalima/pycalima/Calima.py", line 79, in __init__
self.conn = ble.Peripheral(deviceAddr=addr)
File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 391, in __init__
self._connect(deviceAddr, addrType, iface)
File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 439, in _connect
raise BTLEDisconnectError("Failed to connect to peripheral %s, addr type: %s" % (addr, addrType), rsp)
bluepy.btle.BTLEDisconnectError: Failed to connect to peripheral 58:2b:db:02:37:64, addr type: public
Exception ignored in: <function Calima.__del__ at 0x7650fae0>
Traceback (most recent call last):
File "/home/pi/pycalima/pycalima/Calima.py", line 83, in __del__
self.conn.disconnect()
AttributeError: 'Calima' object has no attribute 'conn'
Metadata
Metadata
Assignees
Labels
No labels