FLIR One Developer / Blog / Topics / Detect Flir One connection without waiting for 'FLIROneSDKDidConnect' ?

Detect Flir One connection without waiting for 'FLIROneSDKDidConnect' ?

Home Forums FLIR ONE SDK Development iOS development Installation and getting started Detect Flir One connection without waiting for 'FLIROneSDKDidConnect' ?

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of James James 8 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)

  • Author

    Posts

  • #8191

    Profile photo of James
    James

    Participant

    Hello, is it possible to detect whether the Flir One is connected without waiting for a FLIROneSDKDidConnect call on the delegate (i.e. in a blocking manner)? This would allow me to present correct information at start up without a timeout. Many thanks otherwise for a nice clear SDK.

    #8222

    Profile photo of Allison
    Allison

    Moderator

    Hi James,

    Unfortunately, I believe waiting for the FLIROneSDKDidConnect is the only way to detect if the FLIR One has connected or not.

    Thank you,
    Allison Torchia

    #8293

    Profile photo of James
    James

    Participant

    I worked out a way of doing this with External Accessory framework:

    NSArray *accessories = [[EAAccessoryManager sharedAccessoryManager]
    connectedAccessories];

    EAAccessory *accessory = accessories[0];

    if ([[accessory name] isEqualToString:@”FLIR ONE Camera”]) ….

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.