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

Please add new device support #36

Open
bdfy opened this issue Aug 29, 2023 · 0 comments
Open

Please add new device support #36

bdfy opened this issue Aug 29, 2023 · 0 comments

Comments

@bdfy
Copy link

bdfy commented Aug 29, 2023

I bought a new version of the device - it does not work with the current code. If you change the code:

    @property
    def time(self):
        with self.connect():
            ch = self._peripheral.getCharacteristics(uuid=UUID_TIME)[0]
            value = ch.read()
        if len(value) == 7:
            value = value[:-2]
        if len(value) == 5:
            ts, tz_offset = struct.unpack('Ib', value)

all OK

Looks like the format has changed.
2.txt
1.txt

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