[英]How to detect nearby devices with Bluetooth LE in iOS 7.1 both in background and foreground?
[英]how to get ios devices' information nearby with Bluetooth
打開藍牙時,如何設置其他設備的ios設備(iphone和ipad)藍牙可見? 當所有設備的藍牙都打開時,我只想獲取並顯示我的應用程序附近所有ios設備的名稱(包括MFI設備),我也想獲取設備的deviceID。 我已經成功使用GameKit.framework通過使用藍牙連接了兩個ios設備,但這需要兩個設備一起運行該應用程序。 有人可以建議我如何實施它嗎? 非常感謝你!
我自己還沒有做好工作,我知道在這里給出鏈接不好。但是希望這些鏈接能使您從自己開始:
http://www.touchthatfruit.com/ios-bluetooth-development-tutorial-using-game
http://vivianaranha.com/apple-gamekit-bluetooth-integration-tutorial/
http://www.devx.com/wireless/Article/43502/0/page/1
樂意效勞
我不確定您要問什么。 僅打開設備的藍牙是不夠的。 設備需要向對等方通告以檢測到它。 我認為這可能與您要執行的操作有關: http : //www.ralfebert.de/tutorials/ios-swift-multipeer-connectivity/ 。
我嘗試了本教程,它非常有幫助。 它使用Multipeer Connectivity進行廣告和瀏覽以尋找周圍的對等點。 它還顯示您周圍設備的deviceID。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.