This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

UARTService.java onDeviceConnected string Data when BLE data sends byte 0xBA. The variable String data shows 65533 decimal not 186 decimal. How can we fix this problem?

Sir,

Writing Android Software to receive bytes from one of your ble chips for the UART design. Editting nrF ToolBox app.

UARTService.java

onDeviceConnected(BlueTooth device, string Data )

When our  BLE  device data sends byte 0x02  0xBA to the nRF ToolBox app.

The variable String data shows 2 for 0x02 but 65533 decimal  for 0xBA not 186 decimal. 

How can we fix this problem?

Related