arduino-BLEPeripheral
arduino-BLEPeripheral copied to clipboard
Question regarding Slave latency and supervision timeout.
Hello,
I am trying to follow guidelines set up by apple : https://developer.apple.com/library/archive/qa/qa1931/_index.html for connection parameters like link also includes : BLE Parameter Validation Spreadsheet which is checklist for connection parameters.
Based on sheet:
Connection interval min (ms) | 15 Connection interval max (ms) | 30 Slave latency | 0 Supervision timeout (ms) | 2000 Advertising interval (ms) | 20
I am trying to set the same following the APIs provided: https://github.com/sandeepmistry/arduino-BLEPeripheral/blob/master/API.md
I have two queries:
-
This link shows method to set connection interval and advertising interval, however, whats the default value of slave latency and supervision timeout? Can I set that using API?
-
Are these value correct for connection interval mentioned above? nRF.setAdvertisingInterval(20); // for 20 ms advertising interval nRF.setConnectionInterval(12, 24); // considering 1.25ms increment
@DhirajGehlot did you ever figure this out. I'm having similar questions.