connection interval = 20~25 * 1.25ms
This commit is contained in:
+4
-4
@@ -121,11 +121,11 @@
|
||||
|
||||
// Initial minimum connection interval (units of 1.25 ms.)
|
||||
//#define INITIAL_MIN_CONN_INTERVAL 160
|
||||
#define INITIAL_MIN_CONN_INTERVAL 14
|
||||
#define INITIAL_MIN_CONN_INTERVAL 20
|
||||
|
||||
// Initial minimum connection interval (units of 1.25 ms.)
|
||||
//#define INITIAL_MAX_CONN_INTERVAL 320
|
||||
#define INITIAL_MAX_CONN_INTERVAL 20
|
||||
#define INITIAL_MAX_CONN_INTERVAL 25
|
||||
|
||||
// Initial slave latency
|
||||
#define INITIAL_SLAVE_LATENCY 0
|
||||
@@ -1404,7 +1404,7 @@ static void SimpleBLECentral_processGATTMsg(gattMsgEvent_t *pMsg)
|
||||
// After a successful write, display the value that was written and
|
||||
// increment value
|
||||
// Display_print1(dispHandle, ROW_SIX, 0, "Write sent: %d", charVal++);
|
||||
mem_UART_display("write success\n\r");
|
||||
// mem_UART_display("write success\n\r");
|
||||
}
|
||||
|
||||
procedureInProgress = FALSE;
|
||||
@@ -1435,7 +1435,7 @@ static void SimpleBLECentral_processGATTMsg(gattMsgEvent_t *pMsg)
|
||||
|
||||
else if (discState != BLE_DISC_STATE_IDLE)
|
||||
{
|
||||
mem_UART_display("BLE_DISC_STATE_IDLE \n\r");
|
||||
// mem_UART_display("BLE_DISC_STATE_IDLE \n\r");
|
||||
SimpleBLECentral_processGATTDiscEvent(pMsg);
|
||||
}
|
||||
} // else - in case a GATT message came after a connection has dropped, ignore it.
|
||||
|
||||
Reference in New Issue
Block a user