d4rken / myolib

Android Myo library with full data access and support for multiple Myos.
Apache License 2.0
38 stars 19 forks source link

Unknown Myo serial number format #1

Open d4rken opened 9 years ago

d4rken commented 9 years ago

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 commented 8 years ago

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