我的代碼基於Apple的CoreBluetooth示例代碼,名爲「TemperatureSenor」。 我發現如果我設置外設重複發送消息,則調用peripheral:setNotifyValue:YES forCharacteristic:
,最後調用peripheral:didUpdateValueForCharacteristic:
。
如果我呼叫peripheral:setNotifyValue:YES forCharacteristic:
收聽來自外設的消息,然後將外設設置爲發送消息到中央,則中央不會調用peripheral:didUpdateValueForCharacteristic:
。 是什麼原因?peripheral:didUpdateValueForCharacteristic無法到達
0
A
回答
0
也許您應該確定您用來發送消息的特性是否具有由外設決定的通知屬性。如果您的特性沒有通知屬性,但仍稱爲「peripheral:setNotifyValue:YES forCharacteristic: 「,您將收到未知錯誤2. 如果您的特徵已通知財產,並且您稱爲」peripheral:setNotifyValue:YES forCharacteristic:「,中央將調用」peripheral:didUpdateValueForCharacteristic:「
相關問題
- 1. 無法到達彈簧beans.dtd
- 2. 無法達到readystate = 4
- 3. jQuery Ajax()無法達到C#Web方法
- 4. 無法達到屬性或方法
- 5. 存儲庫「...」無法到達。與Xcode 4.5.1
- 6. watchOS,WCSession activationDidCompleteWith「activated」,但無法到達
- 7. Ajax值無法達到刪除功能
- 8. 無法到達的代碼返回START_STICKY;
- 9. 無法達到maven依賴關係
- 10. 無法通過Ajax到達PageMethod
- 11. 無法達到dd的速度
- 12. 存儲過程無法到達
- 13. 無法達到設定值時
- 14. 無法到達的頁面蝕
- 15. 有向圖 - 無法到達的節點
- 16. 無法在Visual Studio中達到斷點
- 17. 表達錯誤:無法找到模塊'../ ..'
- 18. 無法到達Docker中的Asp.Net核心
- 19. 無法檢測到WiFi的可達性
- 20. 拉亞無法達到POI提供商
- 21. 360視頻無法達到60P輸出
- 22. git - 擺脫無法到達的提交
- 23. websocket框架可能無法到達?
- 24. 無法到達catch塊中的JavaScript
- 25. CSS特異性 - 無法達到要求
- 26. 無法在ArrayAdapter達到getView <>
- 27. 無法到達退貨聲明?
- 28. Instagram API。 「無法達到回調網址」
- 29. 無法使DIV達到頁面底部
- 30. 無法到達條鏈接:關於thymeleaf