Open d4rken opened 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?
byte[6]
uint8_t serial_number[6]; ///< Unique serial number of this Myo. https://github.com/thalmiclabs/myo-bluetooth/blob/master/myohw.h#L95
uint8_t serial_number[6]; ///< Unique serial number of this Myo.
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.
new String(...)
You may convert the byte array to hex string and this method surely works fine.
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#L95https://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.