工程基于SimpleBLEPeripheral修改,新手提问,修改哪里能不断开连接呢?
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.
工程基于SimpleBLEPeripheral修改,新手提问,修改哪里能不断开连接呢?
尝试修改
// Minimum connection interval (units of 1.25ms, 80=100ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 20 //没有更改
// Maximum connection interval (units of 1.25ms, 800=1000ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL 200 //从20改到200
但是效果不明显啊
你把DEFAULT_DESIRED_MIN_CONN_INTERVAL改为180试试
如果不会断开了,然后调试减小到最快
同时DEFAULT_ENABLE_UPDATE_REQUEST要设为TRUE