How via android I can access to GATT error codes
Instead of doing this:
override fun onConnectionStateChange(gatt: BluetoothGatt?, status: Int, newState: Int) {
super.onConnectionStateChange(gatt, status, newState)
if (status == 133) {
//Do something
}
}
I wish to do simething like this:
override fun onConnectionStateChange(gatt: BluetoothGatt?, status: Int, newState: Int) {
super.onConnectionStateChange(gatt, status, newState)
if (status == <WhatGoesHere?>.GATT_ERROR) {
//Do something
}
}