-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Labels
Description
Running on a Raspberry Pi 4 using the inbuilt BT adapter
I've attempted to use the switchbot_py3.py as well as doing this myself and get the following when sending the handles which it should be sending:
gattlib.GATTException: Characteristic value/descriptor operation failed: Invalid handle
E.g.
python3 switchbot_py3.py -d XX:XX:XX:XX:XX:XX -c on
Connected!
Traceback (most recent call last):
File "/root/python-host/switchbot_py3.py", line 180, in <module>
main()
File "/root/python-host/switchbot_py3.py", line 175, in main
driver.run_command(opts.command)
File "/root/python-host/switchbot_py3.py", line 124, in run_command
return req.write_by_handle(self.handles[command], self.commands[command])
gattlib.GATTException: Characteristic value/descriptor operation failed: Invalid handle
Is there a change to the commands/handles with Switchbot Bot version 5?