original payload: 4xxxxA 0xxxxx 022A 10 029266
the last byte, =>11 is 66. this is exactly the battery capacity and should not be converted in integer
but i dont know how?
var battery = bytes[11];
does not work
capacity then is 102 but it is 66 %
how can i solve this? i have no idea about java…
can i convert this back to HEX with a simple command?
regards
doc: http://goo.gl/Uf6PQD