RE: Getting back more characteristics than I asked for
RE: Getting back more characteristics than I asked for
- Subject: RE: Getting back more characteristics than I asked for
- From: Joakim Fernstad <email@hidden>
- Date: Thu, 23 May 2013 22:20:42 +0000
- Thread-topic: Getting back more characteristics than I asked for
Are kCBUUIDCharacteristicIPAddress and kCBUUIDCharacteristicAuthToken CBUUIDs or NSStrings?
Joakim
-----Original Message-----
From: bluetooth-dev-bounces+jfernstad=email@hidden [mailto:bluetooth-dev-bounces+jfernstad=email@hidden] On Behalf Of Rick Mann
Sent: Thursday, May 23, 2013 3:16 PM
To: email@hidden Bluetooth
Subject: Getting back more characteristics than I asked for
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden