请问TI工程师,如何修改BLE的连接时间间隔 ? 初始化时 有2个参数,desired_min_interval =80 和 desired_max_interval=800, 表示最小值和最大值 ,
那么实际的时间间隔是多少呢?
假如要定义一个连接间隔是20秒连接一次的应用,如何设置呢?
谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
// Minimum connection interval (units of 1.25ms, 80=100ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 80
---------------------------------------
以上代码是从协议栈里copy来的。
如果你要设置连接间隔位20s则:20000/1.25 = 16000
则:#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 16000
即可。