separate prph and central connection bandwidth setting

- add configPrphConn() and configCentralConn() for setting bandwidth for
prph and central connection. These replace  configMaxMtu(),
configGapEventLen(), configHvnTxQueue(), configWriteCmdQueue()
- fix concurrent connection config
- central_uart_multi works with S132 v5
This commit is contained in:
hathach committed 2017-12-21 14:40:44 +07:00
1 parent 444bf505b1
commit bb7392ae36
5 files changed
+152 -90

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ bool BLECentral::connect(const ble_gap_addr_t* peer_addr)
#if SD_VER < 500
VERIFY_STATUS( sd_ble_gap_connect(peer_addr, Bluefruit.Scanner.getParams(), &gap_conn_params), false );
#else
VERIFY_STATUS( sd_ble_gap_connect(peer_addr, Bluefruit.Scanner.getParams(), &gap_conn_params, BLE_CONN_CFG_HIGH_BANDWIDTH), false );
VERIFY_STATUS( sd_ble_gap_connect(peer_addr, Bluefruit.Scanner.getParams(), &gap_conn_params, CONN_CFG_CENTRAL), false );
#endif
return true;
}