Skip to content

Invalid handle on all commands #43

@dcarrion87

Description

@dcarrion87

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?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions