mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
RefactorConstant
PiperOrigin-RevId: 513577039
This commit is contained in:
committed by
Copybara-Service
parent
517ff0f52e
commit
9f49719492
@@ -22,16 +22,6 @@ namespace fastpair {
|
||||
|
||||
// Bluetooth Uuid
|
||||
constexpr char kServiceId[] = "Fast Pair";
|
||||
constexpr char kFastPairServiceUuid[] = "0000FE2C-0000-1000-8000-00805F9B34FB";
|
||||
const char kKeyBasedPairingCharacteristicUuidV1[] = "1234";
|
||||
const char kKeyBasedPairingCharacteristicUuidV2[] =
|
||||
"FE2C1234-8366-4814-8EB0-01DE32100BEA";
|
||||
const char kPasskeyCharacteristicUuidV1[] = "1235";
|
||||
const char kPasskeyCharacteristicUuidV2[] =
|
||||
"FE2C1235-8366-4814-8EB0-01DE32100BEA";
|
||||
const char kAccountKeyCharacteristicUuidV1[] = "1236";
|
||||
const char kAccountKeyCharacteristicUuidV2[] =
|
||||
"FE2C1236-8366-4814-8EB0-01DE32100BEA";
|
||||
|
||||
// Key pair
|
||||
constexpr int kSharedSecretKeyByteSize = 16;
|
||||
@@ -66,11 +56,6 @@ constexpr uint8_t kAccountKeyStartByte = 0x04;
|
||||
constexpr uint8_t kKeyBasedPairingType = 0x00;
|
||||
constexpr uint8_t kInitialOrSubsequentFlags = 0x00;
|
||||
constexpr uint8_t kRetroactiveFlags = 0x10;
|
||||
|
||||
// GATT connection
|
||||
constexpr int kMaxNumGattConnectionAttempts = 3;
|
||||
constexpr int kGattOperationTimeout = 15;
|
||||
|
||||
} // namespace fastpair
|
||||
} // namespace nearby
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ namespace fastpair {
|
||||
namespace {
|
||||
constexpr absl::Duration kFastPairLowPowerActiveSeconds = absl::Seconds(2);
|
||||
constexpr absl::Duration kFastPairLowPowerInactiveSeconds = absl::Seconds(3);
|
||||
constexpr char kFastPairServiceUuid[] = "0000FE2C-0000-1000-8000-00805F9B34FB";
|
||||
} // namespace
|
||||
|
||||
// static
|
||||
|
||||
Reference in New Issue
Block a user