mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-01-26 22:37:13 -05:00
Decrease connection interval on BLE to increase throughput
This commit is contained in:
parent
da1207ceee
commit
34e872b25d
@ -476,7 +476,7 @@ char bt_devname[11];
|
|||||||
Bluefruit.Security.setSecuredCallback(bt_connect_callback);
|
Bluefruit.Security.setSecuredCallback(bt_connect_callback);
|
||||||
Bluefruit.Periph.setDisconnectCallback(bt_disconnect_callback);
|
Bluefruit.Periph.setDisconnectCallback(bt_disconnect_callback);
|
||||||
Bluefruit.Security.setPairCompleteCallback(bt_pairing_complete);
|
Bluefruit.Security.setPairCompleteCallback(bt_pairing_complete);
|
||||||
//Bluefruit.Periph.setConnInterval(6, 12); // 7.5 - 15 ms
|
Bluefruit.Periph.setConnInterval(6, 12); // 7.5 - 15 ms
|
||||||
|
|
||||||
const ble_gap_addr_t gap_addr = Bluefruit.getAddr();
|
const ble_gap_addr_t gap_addr = Bluefruit.getAddr();
|
||||||
char *data = (char*)malloc(BT_DEV_ADDR_LEN+1);
|
char *data = (char*)malloc(BT_DEV_ADDR_LEN+1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user