resolve Gatt Connection State Action
fun resolveGattConnectionStateAction(status: Int, newState: Int, isKnownGatt: Boolean): GattConnectionStateAction
Determines the action to take for a client-side onConnectionStateChange event.
Parameters
status
the GATT status code (0 = success, 19 = peer disconnect, 133 = generic error, etc.)
new State
the new connection state (one of GattState constants)
is Known Gatt
true if this GATT object is the one we're tracking in our connections map