久久久久久久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 消失了)
主站蜘蛛池模板: 国产a视频 | 国产h在线| 欧美日韩久久久 | 国产精品黄色 | 国产成人一区二区三区 | 亚洲一区国产 | 99久久精品免费看国产四区 | 久久久精品一区二区 | 丁香五月网久久综合 | 国产1区 | 久久大陆 | 国产观看| 亚洲免费视频在线观看 | 成人三级视频在线观看 | 欧美小视频在线观看 | 亚洲精品久久久久久首妖 | 日本中出视频 | 久久久99精品免费观看 | 亚洲国产精品成人无久久精品 | 91不卡| 亚洲日本视频 | 国产高清亚洲 | 免费簧片视频 | 国产亚洲精品久久午夜玫瑰园 | 午夜专区 | 久久高清国产视频 | 精品伊人久久 | 亚洲一区二区久久 | 国产美女在线观看 | 午夜影院在线免费观看视频 | 91精品国产一区二区三区动漫 | 国产福利在线视频 | 男人的天堂视频网站 | 亚洲成人一级 | 久久久久久久久久久丰满 | 国产99久久精品一区二区永久免费 | aaa大片免费观看 | 成人激情视频 | 一级毛片高清 | 在线中文字幕av | www.狠狠干 |