negative value

  1. P

    Android Question negative value in the received data

    Hello everyone I receive data via BLE and some values are received as negative values in the buffer. I am sure that BLE receives the value hex = 0xC0 (dec = 192), but after receiving the data, I have 0xFFFFFFC0 in the buffer, which gives dec = -64 How to get the correct data, i.e. 0xC0? I will...
Top