@@ -68,8 +68,8 @@ extern "C" {
68
68
#include < setup_payload/AdditionalDataPayloadGenerator.h>
69
69
#endif
70
70
71
- #define BLE_MIN_CONNECTION_INTERVAL_MS 45 // 45 msec
72
- #define BLE_MAX_CONNECTION_INTERVAL_MS 45 // 45 msec
71
+ #define BLE_MIN_CONNECTION_INTERVAL_MS 45
72
+ #define BLE_MAX_CONNECTION_INTERVAL_MS 45
73
73
#define BLE_SLAVE_LATENCY_MS 0
74
74
#define BLE_TIMEOUT_MS 400
75
75
#define BLE_DEFAULT_TIMER_PERIOD_MS (1 )
@@ -249,13 +249,13 @@ namespace {
249
249
#define BLE_CONFIG_MIN_INTERVAL (16 ) // Time = Value x 1.25 ms = 30ms
250
250
#define BLE_CONFIG_MAX_INTERVAL (80 ) // Time = Value x 1.25 ms = 100ms
251
251
#define BLE_CONFIG_LATENCY (0 )
252
- #define BLE_CONFIG_TIMEOUT (100 ) // Time = Value x 10 ms = 1s
253
- #define BLE_CONFIG_MIN_CE_LENGTH (0 ) // Leave to min value
252
+ #define BLE_CONFIG_TIMEOUT (100 ) // Time = Value x 10 ms = 1s
253
+ #define BLE_CONFIG_MIN_CE_LENGTH (0 ) // Leave to min value
254
254
#define BLE_CONFIG_MAX_CE_LENGTH (0xFFFF ) // Leave to max value
255
255
256
256
TimerHandle_t sbleAdvTimeoutTimer; // FreeRTOS sw timer.
257
257
258
- const uint8_t UUID_CHIPoBLEService[] = { 0xFB , 0x34 , 0x9B , 0x5F , 0x80 , 0x00 , 0x00 , 0x80 ,
258
+ const uint8_t UUID_CHIPoBLEService[] = { 0xFB , 0x34 , 0x9B , 0x5F , 0x80 , 0x00 , 0x00 , 0x80 ,,
259
259
0x00 , 0x10 , 0x00 , 0x00 , 0xF6 , 0xFF , 0x00 , 0x00 };
260
260
const uint8_t ShortUUID_CHIPoBLEService[] = { 0xF6 , 0xFF };
261
261
const ChipBleUUID ChipUUID_CHIPoBLEChar_RX = { { 0x18 , 0xEE , 0x2E , 0xF5 , 0x26 , 0x3D , 0x45 , 0x59 , 0x95 , 0x9F , 0x4F , 0x9C , 0x42 , 0x9F ,
@@ -308,6 +308,7 @@ CHIP_ERROR BLEManagerImpl::_Init()
308
308
309
309
void BLEManagerImpl::OnSendIndicationTimeout (System::Layer * aLayer, void * appState)
310
310
{
311
+ // TODO: change the connection handle with the ble device ID
311
312
uint8_t connHandle = 1 ;
312
313
ChipLogProgress (DeviceLayer, " BLEManagerImpl::HandleSoftTimerEvent CHIPOBLE_PROTOCOL_ABORT" );
313
314
ChipDeviceEvent event;
@@ -489,7 +490,7 @@ bool BLEManagerImpl::SendIndication(BLE_CONNECTION_OBJECT conId, const ChipBleUU
489
490
status = rsi_ble_indicate_value (event_msg.resp_enh_conn .dev_addr , event_msg.rsi_ble_measurement_hndl , (data->DataLength ()),
490
491
data->Start ());
491
492
492
- // start timer for light indication confirmation. Long delay for spake2 indication
493
+ // start timer for the indication Confirmation Event
493
494
DeviceLayer::SystemLayer ().StartTimer (chip::System::Clock::Milliseconds32 (BLE_SEND_INDICATION_TIMER_PERIOD_MS),
494
495
OnSendIndicationTimeout, this );
495
496
0 commit comments