[問題] 關於Bluetooth notification

看板MacDev作者 (rex0710)時間10年前 (2013/07/15 09:28), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/2 (看更多)
當第一次連上Bluetooth Peripheral時: 執行 [peripheral setNotifyValue:YES forCharacteristic:characteristic]; 可成功設定並會在didUpdateNotificationStateForCharacteristic收到註冊成功的訊息 當斷線時: 1.執行[peripheral setNotifyValue:NO forCharacteristic:characteristic]; 2.執行[cbCentralManager cancelPeripheralConnection:peripheral]; 可成功中斷連線 但若重新再連線時: 當執行[peripheral setNotifyValue:YES forCharacteristic:characteristic]; 卻無法在didUpdateNotificationStateForCharacteristic收到註冊訊息 請問是否有人遇過類似的問題? 該如何解決? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 211.75.164.165

07/16 01:10, , 1F
iOS哪一版的@@?
07/16 01:10, 1F
文章代碼(AID): #1Hur0cgq (MacDev)
文章代碼(AID): #1Hur0cgq (MacDev)