Re: [問題] 關於Bluetooth notification

看板MacDev作者 (rex0710)時間10年前 (2013/07/18 09:14), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《bluerex100 (rex0710)》之銘言: 當第一次連上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,
iOS哪一版的@@?
07/16 01:10
iOS 6.1 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 211.75.164.165
文章代碼(AID): #1Hvq5tAX (MacDev)
文章代碼(AID): #1Hvq5tAX (MacDev)