作者bluerex100 (rex0710)
看板MacDev
標題[問題] 關於Bluetooth notification
時間Mon Jul 15 09:28:03 2013
當第一次連上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
1F:→ man27382210:iOS哪一版的@@? 07/16 01:10