Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Unknown Myo serial number format #1

Open
d4rken opened this issue Aug 1, 2015 · 1 comment
Open

Unknown Myo serial number format #1

d4rken opened this issue Aug 1, 2015 · 1 comment

Comments

@d4rken
Copy link
Owner

d4rken commented Aug 1, 2015

The protocol specifies the serial number as byte[6].
I'm not sure how to format this to a serial number.
A hex string?

uint8_t serial_number[6]; ///< Unique serial number of this Myo.
https://github.com/thalmiclabs/myo-bluetooth/blob/master/myohw.h#L95

https://github.com/d4rken/myolib/blob/master/myolib/src/main/java/eu/darken/myolib/MyoInfo.java#L72

I tried straight conversion by new String(...) but the result was just a couple of unreadable characters.

@hanigamal
Copy link

You may convert the byte array to hex string and this method surely works fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants