Discovering device that just connected
Discovering device that just connected
- Subject: Discovering device that just connected
- From: Nick Brook <email@hidden>
- Date: Fri, 27 Mar 2015 18:33:51 +0000
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