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

Failed to connect to peripheral #14

Open
FelixNiedermann opened this issue Mar 16, 2022 · 2 comments
Open

Failed to connect to peripheral #14

FelixNiedermann opened this issue Mar 16, 2022 · 2 comments

Comments

@FelixNiedermann
Copy link

FelixNiedermann commented Mar 16, 2022

I'm Executin the following:

`pi@pi:~/kettle $ python3 demo.py connect B8:7C:6F:A9:08:61 1116

DEBUG:mikettle.mikettle:Init Mikettle with mac B8:7C:6F:A9:08:61 and pid 1116
Authenticating
Getting data from mi Kettle
FW: 7.5.10
Traceback (most recent call last):
File "/home/pi/kettle/demo.py", line 77, in
main()
File "/home/pi/kettle/demo.py", line 73, in main
args.func(args)
File "/home/pi/kettle/demo.py", line 47, in connect
print("Name: {}".format(kettle.name()))
File "/home/pi/kettle/mikettle/mikettle.py", line 87, in name
self.connect()
File "/home/pi/kettle/mikettle/mikettle.py", line 82, in connect
self._p = Peripheral(deviceAddr=self._mac, iface=self._iface)
File "/usr/local/lib/python3.9/dist-packages/bluepy/btle.py", line 391, in init
self._connect(deviceAddr, addrType, iface)
File "/usr/local/lib/python3.9/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 B8:7C:6F:A9:08:61, addr type: public`

The kettle gives a peep sound (With other product id it does not, so I think that part is right) but it's not able to fully connect to the Mi Kettle. Any ideas?

@Worrah
Copy link

Worrah commented May 29, 2023

same for me

@Miliks
Copy link

Miliks commented Jun 28, 2024

Any update, i'm facing the same issue

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

3 participants