久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

CoreBluetooth:唯一 UUID 的生命周期是多少

CoreBluetooth: What is the lifetime of unique UUIDs(CoreBluetooth:唯一 UUID 的生命周期是多少)
本文介紹了CoreBluetooth:唯一 UUID 的生命周期是多少的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

根據這個問題:
Corebluetooth,如何獲取唯一的 UUID?

連接到外圍設備后,我可以檢索它的 CFUUIDRef,這是唯一的,并且可以使用它通過 retrievePeripherals 重新連接.但是,我發現關閉應用程序后無法使用它重新連接.

After connecting to a peripheral, I can retrieve its CFUUIDRef, which is unique, and can use it to reconnect via retrievePeripherals. However, I have found that I can not use it to reconnect after closing the application.

連接后生成的唯一 UUID 是否僅在應用程序的生命周期內有效,還是我們應該能夠保存它以供以后使用?我試圖讓我的應用程序記住一個特定的外圍設備,但除了 peripheral.UUID,我不知道任何其他唯一標識符.

Is the unique UUID generated after a connection only valid for the lifetime of the application or are we supposed to be able to save it for later use? I am trying to have my application remember one particular peripheral, but besides peripheral.UUID, I don't know of any other unique identifiers.

推薦答案

長話短說,是的,即使在關閉應用程序后,您也可以使用 UUID 重新連接到同一設備(在你怎么說).

Long story short, YES you can use the UUID to reconnect to the same device even after you close the application (in exactly the way you say).

但是,我假設您實際上并沒有與外圍設備配對.這是一個大問題.您需要實際建立配對請求并讓外圍設備顯示在藍牙表中.然后,UUID 將與 iOS 設備一起固化,并一直保留到您刷新 iOS 設備的網絡設置為止.

I assume however, that you are not actually pairing with peripheral. That's a big problem right there. You need to actually establish the pairing request and get the peripheral to show up in the bluetooth table. The UUID will then be solidified with the iOS device and will remain until you flush the Network Settings of the iOS device.

另一種可能是您的 BLE 設備有固件問題,在您斷開連接后,它會強制自己進入廣告模式或其他什么東西.這也會影響您重新連接的能力.如果您有任何問題,請告訴我!

The other possibility is that your BLE device has a firmware problem, wherein after you disconnect, it forces itself into advertising mode or something. This will also mess with your ability to reconnect. Let me know if you have any questions!

這篇關于CoreBluetooth:唯一 UUID 的生命周期是多少的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Using Instruments to test an iOS app without having source code to the application(在沒有應用程序源代碼的情況下使用 Instruments 測試 iOS 應用程序)
KIF: How to auto-run/stress test an iOS app to find the cause of a rare UI bug?(KIF:如何自動運行/壓力測試 iOS 應用程序以找出罕見 UI 錯誤的原因?)
Can#39;t change target membership visibility in Xcode 4.5(無法更改 Xcode 4.5 中的目標成員身份可見性)
UITableView: Handle cell selection in a mixed cell table view static and dynamic cells(UITableView:在混合單元格表視圖靜態和動態單元格中處理單元格選擇)
How to remove Address Bar in Safari in iOS?(如何在 iOS 中刪除 Safari 中的地址欄?)
iOS 5 SDK is gone after upgrade to Xcode 4.5(升級到 Xcode 4.5 后,iOS 5 SDK 消失了)
主站蜘蛛池模板: 中文字幕第二区 | 永久av | 亚洲国产精品久久久久秋霞不卡 | 国产96色在线| 成人免费视频网站在线观看 | 精品亚洲一区二区三区 | 免费毛片网站在线观看 | 午夜激情影院 | 亚洲欧美日韩成人在线 | 99re在线视频免费观看 | 日韩在线观看 | 福利av在线| 欧美在线资源 | 久久久精品一区 | 亚州精品天堂中文字幕 | 91精品麻豆日日躁夜夜躁 | 久视频在线 | 欧美日韩亚洲国产 | 精品国产视频 | 亚洲精选一区 | 免费观看日韩av | а√中文在线8 | 欧美在线网站 | 久久久久久久久国产精品 | 亚洲成年在线 | 精品美女视频在免费观看 | 国产中文视频 | 欧美1级 | 国产精品久久国产精品 | 亚洲免费一区二区 | 国产极品91| 国产一区久久精品 | 一本一道久久a久久精品蜜桃 | 成人网视频| 国产精品黄视频 | 精品毛片视频 | 在线免费视频一区 | 99热.com | 成人一区二区三区在线观看 | 国产精品久久九九 | 亚洲欧洲精品成人久久奇米网 |