Skip to content

Wanting to get the current "roll" on connect #10

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

Open
kevin-huff opened this issue Jan 21, 2023 · 2 comments
Open

Wanting to get the current "roll" on connect #10

kevin-huff opened this issue Jan 21, 2023 · 2 comments

Comments

@kevin-huff
Copy link
Contributor

First time messing with bluetooth, I'm wanting to get the current "roll" on connect. The dice disconnect often. Sometimes during a roll, I'd like to auto-reconnect (figured that out), but that doesn't give me any info about the position of the dice. I'd be interested to see all the Services and Characteristics available, not sure where to look for more info to find out if this is even possible.

@ragcsalo
Copy link

ragcsalo commented Nov 4, 2023

I have the same request.... I will try to snoop the BT connection of the official app and get the command for getting the current dice state. ;-)

@ragcsalo
Copy link

ragcsalo commented Nov 5, 2023

Solution: just send hexa "19" to the die, and the following will happen:

  • the die will blink RED once
  • the die will send the battery %
  • the die will send the current top value (number)
  • I think the die also tries to report the color, but for every die it sends "43 68 61 72 00" so it's not useable

You still have to query the die color by sending hexa "17" to the die.

I hope this helped! :-)

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

2 participants