Finding Connect IQ-compatible devices

Former Member
Former Member
I was wondering if I could get some clarification on the connectIQ.getKnownDevices() function showcased in the mobile SDK. So I am working on an app for a project that will be communicating with many different Vivoactive HRs, and I wanted to know if it works the way I would need it to, since I can't really test on multiple Vivoactive HRs since we only have one at the moment.

So the scenario would be: there's one main mobile device(Say, a tablet), and this device wants to communicate with multiple VAHRs nearby to gather some data from them(Willingly, of course). It calls connectIQ.getKnownDevices(). All the VAHR's are paired and connected with their own mobile device(not the main one), but the main mobile device is not. Would the main mobile device be able to recognize that the VAHR is there, AND also connect with it? Or is it a necessity that it has to be paired? It sounds like it has to be paired, but I'd like to make sure anyway.

On a bit of a different note, is there some sort of unique identifier that each device comes with that I would be able to get from the device(s) gotten from connectIQ.getKnownDevices()? That is one important feature that we're required to have, is a way to differentiate between each set of data, and it would be great if there was just some sort of identifier able to be gotten from the device like that.
  • (disclaimer - I've never used the Mobile SDK)

    I think it means that each device needs to be paired to that one mobile device, as I'm not sure how it could do anything with an unpaired device at all. It's probably more for the case where a user may have multiple devices on their own account, and to get info on that. For example, I have a va-hr and fr230 paired right now on my phone, and with TrueUp, I can use either of them at any time, and a companion app may need to know which device it's hearing from.

    I could be wrong, but it seems the watch and the phone need to know about each other.
  • Former Member
    Former Member
    Dang, I kinda figured that was the case, but oh well...Is there any sort of identifier, though? For example, Person A's VAHR would have ID 1001 when paired and connected with the mobile device, and Person B's VAHR would have ID 2002, or something already built into the Connect IQ/Mobile SDK like that? Just wondering, since we're in need of something like that to avoid the troubles of logging into an account for registration to determine who's using the VAHR and whatnot.
  • Is there any sort of identifier, though?

    No.

    Just wondering, since we're in need of something like that to avoid the troubles of logging into an account for registration to determine who's using the VAHR and whatnot.

    That is exactly what you need to do. It should be pretty easy to implement a service that exposes an OAuth2 endpoint.

    Travis