我的代码基于 Apple 名为“ TemperatureSensor ”的 CoreBluetooth 示例代码。我发现一个现象,如果我设置外设重复发送消息,然后调用peripheral:setNotifyValue:YES forCharacteristic:,最后peripheral:didUpdateValueForCharacteristic:被调用。
如果我打电话peripheral:setNotifyValue:YES forCharacteristic:收听来自外围设备的消息,然后设置外围设备向中心发送消息,中心将不会调用peripheral:didUpdateValueForCharacteristic:。什么原因?