[問題] 關於Bluetooth notification
當第一次連上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
07/16 01:10, 1F
討論串 (同標題文章)