WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 0222759

Browse files
committed
fixed chars
1 parent 3a8a291 commit 0222759

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

pylamarzocco/clients/bluetooth.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ async def _write_bluetooth_message(
151151
)
152152
except Exception as e:
153153
_logger.error(" [Descriptor] %s, Error: %s", descriptor, e)
154+
for service in client.services:
155+
for char in service.characteristics:
156+
if char.uuid == "090b7847-e12b-09a8-b04b-8e0922a9abab":
157+
_logger.warning("Auth char: %s", char.handle)
158+
if char.uuid == "050b7847-e12b-09a8-b04b-8e0922a9abab":
159+
_logger.warning("Settings char: %s", char.handle)
154160

155161
async def authenticate() -> None:
156162
"""Build authentication string and send it to the machine."""

pylamarzocco/const.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ class SmartStandbyMode(StrEnum):
103103

104104
# bluetooth
105105
BT_MODEL_PREFIXES: Final = ("MICRA", "MINI", "GS3")
106-
SETTINGS_CHARACTERISTIC: Final = "050b7847-e12b-09a8-b04b-8e0922a9abab"
107-
AUTH_CHARACTERISTIC: Final = "090b7847-e12b-09a8-b04b-8e0922a9abab"
106+
SETTINGS_CHARACTERISTIC: Final = 22 # "050b7847-e12b-09a8-b04b-8e0922a9abab"
107+
AUTH_CHARACTERISTIC: Final = 20 # "090b7847-e12b-09a8-b04b-8e0922a9abab"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pylamarzocco"
3-
version = "1.4.6a3"
3+
version = "1.4.6a4"
44
license = { text = "MIT" }
55
description = "A Python implementation of the new La Marzocco API"
66
readme = "README.md"

0 commit comments

Comments
 (0)