73 case (
byte) 1:
return PAUSE_CONNECTED_UNTIL_DISCONNECTED;
74 case (
byte) 2:
return PAUSE_CONNECTED_UNTIL_READY;
75 case (
byte) 3:
return PAUSE_CONNECTED_UNTIL_PAIRED;
76 case (
byte) 4:
return ALWAYS_ON;
77 default:
return AUTO_OFF;
Discovery policy defines the BTAdapter discovery mode after connecting a remote BTDevice:
DiscoveryPolicy(final byte v)
PAUSE_CONNECTED_UNTIL_DISCONNECTED
Pause discovery until all connected BTDevice become disconnected, effectively until AdapterStatusList...
ALWAYS_ON
Always keep discovery enabled, i.e.
AUTO_OFF
Turn off discovery when a BTDevice gets connected and leave discovery disabled, if turned off by host...
PAUSE_CONNECTED_UNTIL_PAIRED
Pause discovery until all connected BTDevice are optionally SMP paired (~120ms) without GATT service ...
PAUSE_CONNECTED_UNTIL_READY
Pause discovery until all connected BTDevice reach readiness inclusive optional SMP pairing (~120ms) ...