bluetooth low energy example (mvvm)
-
This code has the ble method in Repository.
If you want to see the Ble MVVM code using Service,
See AndroidBluetoothLE_MVVM_Service -
If you want to see your ble device like this code preview, modify UUID in Constants.kt
//사용자 BLE UUID Service/Rx/Tx
const val SERVICE_STRING = "6E400001-B5A3-F393-E0A9-E50E24DCCA9E"
const val CHARACTERISTIC_COMMAND_STRING = "6E400002-B5A3-F393-E0A9-E50E24DCCA9E"
const val CHARACTERISTIC_RESPONSE_STRING = "6E400003-B5A3-F393-E0A9-E50E24DCCA9E"
- BLE Example : https://ddangeun.tistory.com/98