Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Characteristic value/descriptor operation failed: Invalid handle #19

Open
r3-yamauchi opened this issue Nov 2, 2020 · 1 comment

Comments

@r3-yamauchi
Copy link

Ubuntu 18.04

`
$ sudo python3 switchbot_py3.py --device C7:96:B8:○○:○○:○○
Connected!
Traceback (most recent call last):
File "switchbot_py3.py", line 109, in
main()
File "switchbot_py3.py", line 104, in main
driver.run_command('press')
File "switchbot_py3.py", line 56, in run_command
return self.req.write_by_handle(self.handle, self.commands[command])
RuntimeError: Characteristic value/descriptor operation failed: Invalid handle

$ sudo python3 switchbot_py3.py --device C7:96:B8:○○:○○:○○ Humiture
Connected!
Traceback (most recent call last):
File "switchbot_py3.py", line 109, in
main()
File "switchbot_py3.py", line 104, in main
driver.run_command('press')
File "switchbot_py3.py", line 56, in run_command
return self.req.write_by_handle(self.handle, self.commands[command])
RuntimeError: Characteristic value/descriptor operation failed: Invalid handle
`

@SwitchBot-Wonderlabs
Copy link
Member

switchbot_py3.py does not support meter now, we will add it later.
Type python3 switchbot_py3.py --help for usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants