iOS App作为外设(从设备)设置广播间隙和连接间隙最大值最小值问题

xiaoxiao2021-02-28  128

根据公司对蓝牙BLE通信时间的进一步缩短要求,我们开始了从设备广播间隙和连接范围间隙的最大最小值下手了。然而经过查找从设备属性和方法列表只找到了这个: /*! * @method setDesiredConnectionLatency:forCentral: * * @param latency The desired connection latency. * @param central A connected central. * * @discussion Sets the desired connection latency for an existing connection to <i>central</i>. Connection latency changes are not guaranteed, so the * resultant latency may vary. If a desired latency is not set, the latency chosen by <i>central</i> at the time of connection establishment * will be used. Typically, it is not necessary to change the latency. * * @see CBPeripheralManagerConnectionLatency * */ - (void)setDesiredConnectionLatency:(CBPeripheralManagerConnectionLatency)latency forCentral:(CBCentral *)central; 连接延时的方法。不符合要求,于是又开始了漫长的搜索与学习之路,在

【链接】低功耗蓝牙BLE之广播

中发现:

然后各种搜索GAP,但是发现搜索内容大抵都是TI CC2540蓝牙模块。研究了一阵之后发现方向出问题了。只能纠正方向重新来。又是一天的漫长研究学习发现这么一个问题:

跟我需求是一样的。看大神的回复吧:

翻译大抵是这样的:

都看到这里了,我只想说一句sixsixsix,Apple权限问题吗?得出结论:iOS App作为从设备时不能设置广播间隙和连接间隙。经测试广播间隙默认大致30ms。
转载请注明原文地址: https://www.6miu.com/read-17830.html

最新回复(0)