myolib
myolib copied to clipboard
Unknown Myo serial number format
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.
You may convert the byte array to hex string and this method surely works fine.