after choosing a device from the list I click ok on the popup window for couple with device. The application then starts its routine to get the bluetooth address, crystal Trim and so on.
But it always fails in the first point when the application looks if there is a device and is it state connected. So it never reaches the read functions for the crystal Trim or the bluetooth address.
Can anyone help with this?
Could you specify the detailed information of your development environment?
You may need to do some modifications for different environment.
Thanks,
I am using the following development environments:
The uEnergy SDK version 2.4.3.26
XCode version 7.3.1
Apple Ipad Air with IOS version 9.3.5
I think the problem lies in the waitForDelegate function. Because the pcm object is mostly nil even when the Callback
PCM *pcm = [targetPeripheral getCallback]; says there is a pcm Object.