Hello,
I'm new to BLE part of the API and don't see this anywhere in the forum or API documents. I see that 3 profiles can be registered, but how do I remove registered profiles?
Thank you.
Hello,
I'm new to BLE part of the API and don't see this anywhere in the forum or API documents. I see that 3 profiles can be registered, but how do I remove registered profiles?
Thank you.
There are there until you exit the CIQ app. And the limit is 3 profiles at most. There are nordicthingy52 samples in the SDK.
There is a wiki about getting started with BLE. https://forums.garmin.com/developer/connect-iq/w/wiki/19/getting-started-with-connect-iq-ble-development
And here's a blog post I did with a raspberry pi when this first came out: https://forums.garmin.com/developer/connect-iq/b/news-announcements/posts/would-you-like-some-raspberry-pi-with-your-connect-iq
Thanks jim_m_58, I'm looking at the nordicthingy52 samples, but was curious about how registered profiles worked as I am modifying my app and assumed registering a profile would require unregistering/removing, similar to unpairing.
This brings me to another question, when I launch my app I do the following, registerProfile(), then pairDevice(). If I hit the back button and back all the way out of my app, I will need to registerProfile and pairDevice again when it's relaunched? Not just pairDevice? Is there a way to stay paired in this scenario?
Thank you!
Once registered, they remain registered until the app exits. Also, all services/characteristics you want to used must be defined in the CIQ BLE profile.
Are you not scanning between register and pair? Do you have a scan result saved off?
And yes, registerProfile is only for the current run of your app.
jim_m_58 thanks for the quick responses! I do scan between register and pair; unintentionally left that part out of the steps mentioned above.