2
CoreBluetooth 앱에서 알림에서 표시로 전환하여 다른 쪽에서 데이터를 수신 할 수 있습니다.CBCharacteristicPropertyIndicate를 사용하여 특성을 어떻게 얻을 수 있습니까?
애플의 샘플 코드 BTLE Central Peripheral Transfer에서 나는 을 CBCharacteristicPropertyIndicate
으로 대체하려고 시도했다. 그것은 작동하지 않았다. 주변이 기록 :
2013-03-24 18:50:34.412 BTLE Transfer[15346:907] self.peripheralManager powered on.
2013-03-24 18:50:38.436 BTLE Transfer[15346:907] Central subscribed to characteristic
2013-03-24 18:50:38.440 BTLE Transfer[15346:907] Sent: Here is a bunch of s
2013-03-24 18:50:38.442 BTLE Transfer[15346:907] Sent: ample text. Hold ano
2013-03-24 18:50:38.444 BTLE Transfer[15346:907] Sent: ther device close to
2013-03-24 18:50:38.446 BTLE Transfer[15346:907] Sent: see the transfer ha
2013-03-24 18:50:38.448 BTLE Transfer[15346:907] Sent: ppen.
2013-03-24 18:50:38.450 BTLE Transfer[15346:907] Sent: EOM
중앙가 기록 :
2013-03-24 18:50:19.209 BTLE Transfer[7331:c07] Scanning started
2013-03-24 18:50:37.998 BTLE Transfer[7331:c07] Discovered iPhone at -34
2013-03-24 18:50:37.999 BTLE Transfer[7331:c07] Connecting to peripheral <CBConcretePeripheral: 0x7591840 UUID = <CFUUID 0x7590780> 6A73BF68-01C9-B751-31D5-916297EC1932, Name = "iPhone", IsConnected = NO>
2013-03-24 18:50:38.001 BTLE Transfer[7331:c07] Discovered iPhone at -34
2013-03-24 18:50:38.030 BTLE Transfer[7331:c07] Peripheral Connected
2013-03-24 18:50:38.032 BTLE Transfer[7331:c07] Scanning stopped
2013-03-24 18:50:39.069 BTLE Transfer[7331:c07] Notification began on <CBConcreteCharacteristic: 0x75868a0>
2013-03-24 18:50:39.071 BTLE Transfer[7331:c07] Received: Here is a bunch of s
는 그래서 중앙은 첫 번째 메시지를 받았습니다 보인다, 다음 아무것도 더. 누구든지 내가 잘못 한 것을 알고 작동 지침을 얻는 방법을 알고 있습니까?
값 업데이트 수신 확인을위한 API도 없다는 것을 확인했습니다. –