Re: Discovering device that just connected
Re: Discovering device that just connected
- Subject: Re: Discovering device that just connected
- From: Nick Brook <email@hidden>
- Date: Fri, 27 Mar 2015 19:01:24 +0000
Similarly, if a peripheral is disconnected from iOS it would be useful to know too, as I want to know about all devices that aren’t connected to my App going in and out of range. The fact that iOS connects to the peripheral automatically and doesn’t provide any information that it has done that seems like a bug IMHO…
Thanks Nick
Hi all,
If I: - Scan for peripherals
- Connect to a peripheral
- (pair)
- Turn off the peripheral
- Turn on the peripheral
Then the peripheral will automatically connect to iOS, but no delegate method is called. That is because iOS didn’t receive an advertising packet so didn’t call didDiscoverPeripheral but also the connection wasn’t requested by the App so didConnectPeripheral isn’t called either. I still want to know about the presence of the device though. The only way I can see I can do that is by repeatedly calling retrieveConnectedPeripheralsWithServices. Surely iOS should provide some delegate method to be notified when a device connects to iOS rather than directly to the App? Personally I think it should call didConnectPeripheral, but it doesn’t…
Thanks Nick
|
_______________________________________________
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