Hello,
I would like to code "Connection Parameters Request Procedure" to QN908x as a peripheral role. Has anyone already implemented this?
I was searching sample codes for this, but I could not find any (even though there are many other sample code for services/profiles).
If I could get any sample code/snippet for this, it would be much appreciated.
Thanks,
Daisuke
已解决! 转到解答。
Hello Daisuke,
You can use the Gap_UpdateConnectionParameters() API from the peripheral to issue a Connection Parameter Update Request, but it will depend on the master if it will accept or reject the request.
Example:
Gap_UpdateConnectionParameters(mPeerDeviceId, gGapDefaultMinConnectionInterval_d , gGapDefaultMaxConnectionInterval_d, gGapDefaultConnectionLatency_d, gGapDefaultSupervisionTimeout_d, gGapConnEventLengthMin_d, gGapConnEventLengthMax_d);
Regards,
Hello Daisuke,
You can use the Gap_UpdateConnectionParameters() API from the peripheral to issue a Connection Parameter Update Request, but it will depend on the master if it will accept or reject the request.
Example:
Gap_UpdateConnectionParameters(mPeerDeviceId, gGapDefaultMinConnectionInterval_d , gGapDefaultMaxConnectionInterval_d, gGapDefaultConnectionLatency_d, gGapDefaultSupervisionTimeout_d, gGapConnEventLengthMin_d, gGapConnEventLengthMax_d);
Regards,