@@ -1135,21 +1135,20 @@ void BLEManagerImpl::HandlePlatformSpecificBLEEvent(const ChipDeviceEvent * apEv
1135
1135
}
1136
1136
break ;
1137
1137
case DeviceEventType::kPlatformTizenBLEWriteComplete : {
1138
- HandleWriteConfirmation (apEvent->Platform .BLEWriteComplete .mConnection , &Ble::CHIP_BLE_SVC_ID,
1139
- &Ble::CHIP_BLE_CHAR_1_UUID);
1138
+ HandleWriteConfirmation (apEvent->Platform .BLEWriteComplete .mConnection , &Ble::CHIP_BLE_SVC_ID, &Ble::CHIP_BLE_CHAR_1_UUID);
1140
1139
break ;
1141
1140
}
1142
1141
case DeviceEventType::kPlatformTizenBLESubscribeOpComplete : {
1143
1142
if (apEvent->Platform .BLESubscribeOpComplete .mIsSubscribed )
1144
- HandleSubscribeComplete (apEvent->Platform .BLESubscribeOpComplete .mConnection , &chip:: Ble::CHIP_BLE_SVC_ID,
1143
+ HandleSubscribeComplete (apEvent->Platform .BLESubscribeOpComplete .mConnection , &Ble::CHIP_BLE_SVC_ID,
1145
1144
&chip::Ble::CHIP_BLE_CHAR_2_UUID);
1146
1145
else
1147
- HandleUnsubscribeComplete (apEvent->Platform .BLESubscribeOpComplete .mConnection , &chip:: Ble::CHIP_BLE_SVC_ID,
1146
+ HandleUnsubscribeComplete (apEvent->Platform .BLESubscribeOpComplete .mConnection , &Ble::CHIP_BLE_SVC_ID,
1148
1147
&chip::Ble::CHIP_BLE_CHAR_2_UUID);
1149
1148
break ;
1150
1149
}
1151
1150
case DeviceEventType::kPlatformTizenBLEIndicationReceived : {
1152
- HandleIndicationReceived (apEvent->Platform .BLEIndicationReceived .mConnection , &chip:: Ble::CHIP_BLE_SVC_ID,
1151
+ HandleIndicationReceived (apEvent->Platform .BLEIndicationReceived .mConnection , &Ble::CHIP_BLE_SVC_ID,
1153
1152
&chip::Ble::CHIP_BLE_CHAR_2_UUID,
1154
1153
System::PacketBufferHandle::Adopt (apEvent->Platform .BLEIndicationReceived .mData ));
1155
1154
break ;
@@ -1166,24 +1165,24 @@ void BLEManagerImpl::_OnPlatformEvent(const ChipDeviceEvent * event)
1166
1165
case DeviceEventType::kCHIPoBLESubscribe :
1167
1166
ChipLogProgress (DeviceLayer, " CHIPoBLESubscribe" );
1168
1167
1169
- HandleSubscribeReceived (event->CHIPoBLESubscribe .ConId , &chip:: Ble::CHIP_BLE_SVC_ID, &Ble::CHIP_BLE_CHAR_2_UUID);
1168
+ HandleSubscribeReceived (event->CHIPoBLESubscribe .ConId , &Ble::CHIP_BLE_SVC_ID, &Ble::CHIP_BLE_CHAR_2_UUID);
1170
1169
NotifyBLEConnectionEstablished (event->CHIPoBLESubscribe .ConId , CHIP_NO_ERROR);
1171
1170
break ;
1172
1171
case DeviceEventType::kCHIPoBLEUnsubscribe :
1173
1172
ChipLogProgress (DeviceLayer, " CHIPoBLEUnsubscribe" );
1174
1173
1175
- HandleUnsubscribeReceived (event->CHIPoBLESubscribe .ConId , &chip:: Ble::CHIP_BLE_SVC_ID, &Ble::CHIP_BLE_CHAR_2_UUID);
1174
+ HandleUnsubscribeReceived (event->CHIPoBLESubscribe .ConId , &Ble::CHIP_BLE_SVC_ID, &Ble::CHIP_BLE_CHAR_2_UUID);
1176
1175
break ;
1177
1176
case DeviceEventType::kCHIPoBLEWriteReceived :
1178
1177
ChipLogProgress (DeviceLayer, " CHIPoBLEWriteReceived" );
1179
1178
1180
- HandleWriteReceived (event->CHIPoBLEWriteReceived .ConId , &chip:: Ble::CHIP_BLE_SVC_ID, &Ble::CHIP_BLE_CHAR_1_UUID,
1179
+ HandleWriteReceived (event->CHIPoBLEWriteReceived .ConId , &Ble::CHIP_BLE_SVC_ID, &Ble::CHIP_BLE_CHAR_1_UUID,
1181
1180
System::PacketBufferHandle::Adopt (event->CHIPoBLEWriteReceived .Data ));
1182
1181
break ;
1183
1182
case DeviceEventType::kCHIPoBLEIndicateConfirm :
1184
1183
ChipLogProgress (DeviceLayer, " CHIPoBLEIndicateConfirm" );
1185
1184
1186
- HandleIndicationConfirmation (event->CHIPoBLEIndicateConfirm .ConId , &chip:: Ble::CHIP_BLE_SVC_ID, &Ble::CHIP_BLE_CHAR_2_UUID);
1185
+ HandleIndicationConfirmation (event->CHIPoBLEIndicateConfirm .ConId , &Ble::CHIP_BLE_SVC_ID, &Ble::CHIP_BLE_CHAR_2_UUID);
1187
1186
break ;
1188
1187
case DeviceEventType::kCHIPoBLEConnectionError :
1189
1188
ChipLogProgress (DeviceLayer, " CHIPoBLEConnectionError" );
@@ -1239,7 +1238,7 @@ bool BLEManagerImpl::UnsubscribeCharacteristic(BLE_CONNECTION_OBJECT conId, cons
1239
1238
ChipLogProgress (DeviceLayer, " UnSubscribeCharacteristic" );
1240
1239
1241
1240
VerifyOrExit (conId != nullptr , ChipLogError (DeviceLayer, " Invalid Connection" ));
1242
- VerifyOrExit (Ble::UUIDsMatch (svcId, &chip::Ble ::CHIP_BLE_SVC_ID),
1241
+ VerifyOrExit (Ble::UUIDsMatch (svcId, &cBle ::CHIP_BLE_SVC_ID),
1243
1242
ChipLogError (DeviceLayer, " UnSubscribeCharacteristic() called with invalid service ID" ));
1244
1243
VerifyOrExit (Ble::UUIDsMatch (charId, &Ble::CHIP_BLE_CHAR_2_UUID),
1245
1244
ChipLogError (DeviceLayer, " UnSubscribeCharacteristic() called with invalid characteristic ID" ));
@@ -1320,7 +1319,7 @@ bool BLEManagerImpl::SendWriteRequest(BLE_CONNECTION_OBJECT conId, const Ble::Ch
1320
1319
ChipLogProgress (DeviceLayer, " SendWriteRequest" );
1321
1320
1322
1321
VerifyOrExit (conId != nullptr , ChipLogError (DeviceLayer, " Invalid Connection" ));
1323
- VerifyOrExit (Ble::UUIDsMatch (svcId, &chip:: Ble::CHIP_BLE_SVC_ID),
1322
+ VerifyOrExit (Ble::UUIDsMatch (svcId, &Ble::CHIP_BLE_SVC_ID),
1324
1323
ChipLogError (DeviceLayer, " SendWriteRequest() called with invalid service ID" ));
1325
1324
VerifyOrExit (Ble::UUIDsMatch (charId, &Ble::CHIP_BLE_CHAR_1_UUID),
1326
1325
ChipLogError (DeviceLayer, " SendWriteRequest() called with invalid characteristic ID" ));
0 commit comments