mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
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:
@@ -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.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user