1. Logs instant connection result code to advertise phase, discovery phase or connection attempts.

2. Adds one new result code CONNECTIVITY_AUTO_RESUME_FAILURE for reconnection

PiperOrigin-RevId: 659207468
This commit is contained in:
hai007
2024-08-03 20:29:33 -07:00
committed by Copybara-Service
parent 26d5055b13
commit 12371764e6
2 changed files with 14 additions and 0 deletions
@@ -95,6 +95,10 @@ message ConnectionsLog {
// The result code of the operation result
optional location.nearby.proto.connections.OperationResultCode result_code =
4;
// The connection mode.
optional location.nearby.proto.connections.ConnectionMode connection_mode =
5;
}
// One round of a particular Strategy done by a client.
@@ -311,6 +315,10 @@ message ConnectionsLog {
// The result code of this connection attempt
optional OperationResult operation_result = 9;
// The connection mode.
optional location.nearby.proto.connections.ConnectionMode connection_mode =
10;
}
// A successfully-established connection over a particular medium.
+6
View File
@@ -987,6 +987,10 @@ enum OperationResultCode {
CONNECTIVITY_LAN_MDNS_REGISTER_FAILURE = 3597;
// Failed to change BT scan mode
CONNECTIVITY_BLUETOOTH_CHANGE_SCAN_MODE_FAILURE = 3598;
// Auto resume failure
CONNECTIVITY_AUTO_RESUME_FAILURE = 3599;
// Timeout when listening instant connection
CONNECTIVITY_INSTANT_CONNECTION_LISTENING_TIMEOUT = 3600;
// Section of CATEGORY_NEARBY_ERROR, from 4500
// NO BLE MAC address associated to the GATT advertisement
@@ -1172,6 +1176,8 @@ enum OperationResultCode {
NEARBY_WEB_RTC_INVALID_PCP_OPTIONS = 4584;
// Bluetooth starts scanning without any client existed.
NEARBY_BLUETOOTH_NO_CLIENT_REGISTER_FOR_SCAN = 4585;
// TX Advertisement on a wrong connectivity info.
NEARBY_INSTANT_CONNECTION_WRONG_CONNECTIVITY_INFO = 4586;
}
enum StopAdvertisingReason {