resolveGattConnectionStateAction

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.)

newState

the new connection state (one of GattState constants)

isKnownGatt

true if this GATT object is the one we're tracking in our connections map