I had posted about BLE characteristic returning extra bytes
When parsing characteristic value, there are 3 bogus bytes every so often within the data.
Received in Delphi then using GetValueAsInt8 converted to hex string
What see using BLE tool nRF Connect
(Original link community.embarcadero.com/answers/my-que...tions-corrupted-data )
which seems to have disappeared. I recently revisited the issue and found that it was actually with IntToHex
HexStr := HexStr + inttohex(ACharacteristic.GetValueAsInt8(I),2);
was returning 8 characters not the 2 requested. But only for bytes with msb set, i,e, negative int8 values. Using GetValueAsUint8 eliminated the issue.