Re: Getting back more characteristics than I asked for
More info: If I manage to connect in the simulator, then I get back all the characteristics from the services I query (even though I'm only asking for a few out of each). On May 23, 2013, at 15:15 , Rick Mann <rmann@latencyzero.com> wrote:
I'm sending a request for characterstics like this:
NSArray* chs = @[ kCBUUIDCharacteristicIPAddress, kCBUUIDCharacteristicAuthToken ]; [self.peripheral discoverCharacteristics: chs forService: service];
I get back two Characteristics, but they are not the two I requested. They are the other two of the three defined.
In a subsequent call, I ask for three Characteristics of a different service:
NSArray* chs = @[ kCBUUIDCharacteristicJoinSSID, kCBUUIDCharacteristicJoinPassphrase, kCBUUIDCharacteristicWiFiCommand ]; [self.peripheral discoverCharacteristics: chs forService: service];
But I get back all nine characteristics defined in the service on the BLE112.
I send the GATT Service Changed (0x2A05) notification on connect every time.
Any ideas?
This is on an iPad 4 (Lightning Connector).
Oh, and the Simulator really sucks at connecting, even after being reset.
-- Rick
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/rmann%40latencyzero.co...
This email sent to rmann@latencyzero.com
-- Rick _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Rick Mann