myolib icon indicating copy to clipboard operation
myolib copied to clipboard

Unknown Myo serial number format

Open d4rken opened this issue 9 years ago • 1 comments

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.

d4rken avatar Aug 01 '15 09:08 d4rken

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

hanigamal avatar Mar 08 '16 01:03 hanigamal