iOS App作爲外設(從設備)設置廣播間隙和連接間隙最大值最小值問題

根據公司對藍牙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。
發佈了46 篇原創文章 · 獲贊 37 · 訪問量 13萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章