How to get BLE ByteArray as a Hex string in Kotlin?
I am relatively new to Kotlin and BLE. All i need is the Manufacturer Specific Data from a Bluetooth device. When I use 3rd party apps, I can see the raw data from the scan and it shows up as 0xFF with a value of 0x64140676071A1D0229 for example. But in my app, I get a ByteArray which looks like {5220=[B@975e5dc} for instance. How do I go from this to the Hex value I see on other apps?
This is the code I use to display the data:
private val scanCallback = object : ScanCallback() {...