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

connection loss when getting data #7

Closed
thymjan opened this issue Apr 4, 2020 · 1 comment
Closed

connection loss when getting data #7

thymjan opened this issue Apr 4, 2020 · 1 comment

Comments

@thymjan
Copy link

thymjan commented Apr 4, 2020

Tried to hack my new MiKettle with your python script, thank you for fiddling this out!

It seems to connect for a short period of time. The little bell sound from the kettle appears, the connection is lost.

Debug information:

pi@raspberry:~/mikettle $ python3 demo.py connect XX:XX:XX:XX:XX:XX 275
DEBUG:mikettle.mikettle:Init Mikettle with mac XX:XX:XX:XX:XX:XX and pid 275
Authenticating
Getting data from mi Kettle
FW: 7.5.10
Traceback (most recent call last):
  File "demo.py", line 78, in <module>
    main()
  File "demo.py", line 74, in main
    args.func(args)
  File "demo.py", line 47, in connect
    print("Name: {}".format(kettle.name()))
  File "/home/pi/mikettle/mikettle/mikettle.py", line 87, in name
    self.connect()
  File "/home/pi/mikettle/mikettle/mikettle.py", line 82, in connect
    self._p = Peripheral(deviceAddr=self._mac, iface=self._iface)
  File "/home/pi/.local/lib/python3.7/site-packages/bluepy/btle.py", line 391, in __init__
    self._connect(deviceAddr, addrType, iface)
  File "/home/pi/.local/lib/python3.7/site-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 XX:XX:XX:XX:XX:XX, addr type: public

Can you give me a hint, how to get in this further?

@thymjan
Copy link
Author

thymjan commented Apr 4, 2020

The issue was already discussed here:
#4 (comment)

@thymjan thymjan closed this as completed Apr 4, 2020
This issue was closed.
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

1 participant