I am working on android app which is used to read sugar level from BLE device (Any Glocometer) whenever new data available. Whenever i check my sugar level through device which is connected to the app, its reads below HEX value. I am unable to parse or identify the format of this HEX value. Actual sugar level was 104 mg/dL whenever i decode this HEX value t string i get value 1 Nhø
0B 04 00 E4 07 05 0E 0C 31 1D 4E 01 68 B0 F8 00 00
// For all other profiles, writes the data formatted in HEX.
final byte[] data = characteristic.getValue();
if (data != null && data.length > 0) {
final StringBuilder stringBuilder = new StringBuilder(data.length);
for(byte byteChar : data)
stringBuilder.append(String.format("%02X ", byteChar));
intent.putExtra(EXTRA_DATA, new String(data) + "\n" + stringBuilder.toString());
}