Is there a way to get a device BLE UUID without the user typing it in?
UUID is not going to change every time for a particular chip. So you can find the UUID using some general purpose BLE scanner app and assign it to the variable in your block and call it where ever you want within the block.
@senthilkumaranms724i
If you’re talking about the actual device, I don’t think there is, because I was looking into this some time ago and it’s a restricted permission on Android that only system apps have since Android 6.0
“Android removes programmatic access to the device’s local hardware identifier for apps using the Wi-Fi and Bluetooth APIs”
“The
BluetoothAdapter.getAddress()
methods now return a constant value of02:00:00:00:00:00
”