sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
463 stars 180 forks source link

Question regarding Slave latency and supervision timeout. #253

Open DhirajGehlot opened 5 years ago

DhirajGehlot commented 5 years ago

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:

  1. 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?

  2. 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

KEranda commented 3 years ago

@DhirajGehlot did you ever figure this out. I'm having similar questions.