Xsens DOT iOS SDK  ©2022 Xsens Technologies - Version: 2022.0.0
XsensDotDevicePool(Connection) Category Reference

#import <XsensDotDevicePool.h>

Class Methods

(XsensDotDevice *) + heldDeviceWithPeripheral:
 
(void) + holdDevice:
 
(void) + releaseDevice:
 
(void) + onCentralStateUpdated
 

Method Documentation

◆ heldDeviceWithPeripheral:

+ (XsensDotDevice *) heldDeviceWithPeripheral: (CBPeripheral *)  peripheral

Check the sensor if it is in the connected device pool. The connected device pool is a array that sensor has been connected .

Parameters
peripheralThe CBPeripheral object

Extends class XsensDotDevicePool.

◆ holdDevice:

+ (void) holdDevice: (XsensDotDevice *)  device

Add a sensor to connected device pool, Prevent the same sensor from connecting multiple times

Parameters
deviceThe XsensDotDevice object

Extends class XsensDotDevicePool.

◆ onCentralStateUpdated

+ (void) onCentralStateUpdated

The bluetooth state of phone updated (Turn on or turn off bluetooth)

Extends class XsensDotDevicePool.

◆ releaseDevice:

+ (void) releaseDevice: (XsensDotDevice *)  device

Release a sensor from connected device list, if a sensor has disconnected ,we must release it.

Parameters
deviceThe XsensDotDevice object

Extends class XsensDotDevicePool.


The documentation for this category was generated from the following file: