@@ -438,10 +438,10 @@ void BluezEndpoint::SetupGattService()
438
438
static const char * const c3_flags[] = { " read" , nullptr };
439
439
#endif
440
440
441
- mService .reset (CreateGattService (CHIP_BLE_UUID_SERVICE_SHORT_STRING ));
441
+ mService .reset (CreateGattService (Ble::CHIP_BLE_SERVICE_SHORT_UUID_STR ));
442
442
443
443
// C1 characteristic
444
- mC1 .reset (CreateGattCharacteristic (mService .get (), " c1" , CHIP_PLAT_BLE_UUID_C1_STRING , c1_flags));
444
+ mC1 .reset (CreateGattCharacteristic (mService .get (), " c1" , Ble::CHIP_BLE_CHAR_1_UUID_STR , c1_flags));
445
445
g_signal_connect (mC1 .get (), " handle-read-value" ,
446
446
G_CALLBACK (+[](BluezGattCharacteristic1 * aChar, GDBusMethodInvocation * aInv, GVariant * aOpt,
447
447
BluezEndpoint * self) { return self->BluezCharacteristicReadValue (aChar, aInv, aOpt); }),
@@ -455,7 +455,7 @@ void BluezEndpoint::SetupGattService()
455
455
g_signal_connect (mC1 .get (), " handle-confirm" , G_CALLBACK (BluezCharacteristicConfirmError), nullptr );
456
456
457
457
// C2 characteristic
458
- mC2 .reset (CreateGattCharacteristic (mService .get (), " c2" , CHIP_PLAT_BLE_UUID_C2_STRING , c2_flags));
458
+ mC2 .reset (CreateGattCharacteristic (mService .get (), " c2" , Ble::CHIP_BLE_CHAR_2_UUID_STR , c2_flags));
459
459
g_signal_connect (mC2 .get (), " handle-read-value" ,
460
460
G_CALLBACK (+[](BluezGattCharacteristic1 * aChar, GDBusMethodInvocation * aInv, GVariant * aOpt,
461
461
BluezEndpoint * self) { return self->BluezCharacteristicReadValue (aChar, aInv, aOpt); }),
@@ -478,7 +478,7 @@ void BluezEndpoint::SetupGattService()
478
478
#if CHIP_ENABLE_ADDITIONAL_DATA_ADVERTISING
479
479
ChipLogDetail (DeviceLayer, " CHIP_ENABLE_ADDITIONAL_DATA_ADVERTISING is TRUE" );
480
480
// Additional data characteristics
481
- mC3 .reset (CreateGattCharacteristic (mService .get (), " c3" , CHIP_PLAT_BLE_UUID_C3_STRING , c3_flags));
481
+ mC3 .reset (CreateGattCharacteristic (mService .get (), " c3" , Ble::CHIP_BLE_CHAR_3_UUID_STR , c3_flags));
482
482
g_signal_connect (mC3 .get (), " handle-read-value" ,
483
483
G_CALLBACK (+[](BluezGattCharacteristic1 * aChar, GDBusMethodInvocation * aInv, GVariant * aOpt,
484
484
BluezEndpoint * self) { return self->BluezCharacteristicReadValue (aChar, aInv, aOpt); }),
0 commit comments