Skip to content

Commit 51d1cc2

Browse files
committed
Added changes for the Ble manager impl
1 parent 109b127 commit 51d1cc2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/platform/silabs/rs911x/BLEManagerImpl.cpp

+7-6
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ extern "C" {
6868
#include <setup_payload/AdditionalDataPayloadGenerator.h>
6969
#endif
7070

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
7373
#define BLE_SLAVE_LATENCY_MS 0
7474
#define BLE_TIMEOUT_MS 400
7575
#define BLE_DEFAULT_TIMER_PERIOD_MS (1)
@@ -249,13 +249,13 @@ namespace {
249249
#define BLE_CONFIG_MIN_INTERVAL (16) // Time = Value x 1.25 ms = 30ms
250250
#define BLE_CONFIG_MAX_INTERVAL (80) // Time = Value x 1.25 ms = 100ms
251251
#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
254254
#define BLE_CONFIG_MAX_CE_LENGTH (0xFFFF) // Leave to max value
255255

256256
TimerHandle_t sbleAdvTimeoutTimer; // FreeRTOS sw timer.
257257

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,,
259259
0x00, 0x10, 0x00, 0x00, 0xF6, 0xFF, 0x00, 0x00 };
260260
const uint8_t ShortUUID_CHIPoBLEService[] = { 0xF6, 0xFF };
261261
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()
308308

309309
void BLEManagerImpl::OnSendIndicationTimeout(System::Layer * aLayer, void * appState)
310310
{
311+
// TODO: change the connection handle with the ble device ID
311312
uint8_t connHandle = 1;
312313
ChipLogProgress(DeviceLayer, "BLEManagerImpl::HandleSoftTimerEvent CHIPOBLE_PROTOCOL_ABORT");
313314
ChipDeviceEvent event;
@@ -489,7 +490,7 @@ bool BLEManagerImpl::SendIndication(BLE_CONNECTION_OBJECT conId, const ChipBleUU
489490
status = rsi_ble_indicate_value(event_msg.resp_enh_conn.dev_addr, event_msg.rsi_ble_measurement_hndl, (data->DataLength()),
490491
data->Start());
491492

492-
// start timer for light indication confirmation. Long delay for spake2 indication
493+
// start timer for the indication Confirmation Event
493494
DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Milliseconds32(BLE_SEND_INDICATION_TIMER_PERIOD_MS),
494495
OnSendIndicationTimeout, this);
495496

0 commit comments

Comments
 (0)