You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't init device hci0: Connection timed out (110)
ERROR:pygatt.backends.gatttool.gatttool:Timed out connecting to CF:BF:8B:68:CB:8F after 5.0 seconds.
ERROR:switchbot:pygatt: failed to connect to ble device
Traceback (most recent call last):
File "/home/pi/.local/share/virtualenvs/switchbot-rpEz6xuZ/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
self.sendline(cmd)
File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
next(self.gen)
File "/home/pi/.local/share/virtualenvs/switchbot-rpEz6xuZ/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/home/pi/.local/share/virtualenvs/switchbot-rpEz6xuZ/lib/python3.7/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
Environment
SwitchBot Bot Firmware v4.7
Raspberry Pi 3B+ Raspbian Buster Lite
The text was updated successfully, but these errors were encountered:
@kyori19
Hi, I don't have a bot with firmware 4.7 available but I don't think that this is the problem here.
It looks like the ble library that I use (pygatt) has problems to connect.
This could be because some software packages are not up to date.
I would recommend that you try the following:
I recently bought a switchbot and tried to control with api and python.
But scanning and controlling the bot don't work.
Steps to reproduce
Scan
Error:
I can get same error when I use flask api.
Press button (Interactive Only)
Error:
Environment
The text was updated successfully, but these errors were encountered: