作者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