Xsens DOT iOS SDK  ©2022 Xsens Technologies - Version: 2022.0.0
XsensDotDevicePool Class Reference

#import <XsensDotDevicePool.h>

Inheritance diagram for XsensDotDevicePool:

Class Methods

(XsensDotDevice *) + inquireDeviceWithPeripheral:
 
(void) + bindDevices:
 
(BOOL) + bindDevice:
 
(void) + unbindDevice:
 
(void) + unbindAllDevices
 
(NSArray< XsensDotDevice * > *) + allBoundDevices
 
(NSArray< XsensDotDevice * > *) + allOtaDevices
 
(void) + addOtaDevice:
 
(XsensDotDevice *) + heldDeviceWithPeripheral:
 
(void) + holdDevice:
 
(void) + releaseDevice:
 
(void) + onCentralStateUpdated
 

Detailed Description

This class manages the reconnection behavior of sensors. When reconnection is enabled, you need to bind the sensor to activate the reconnection function after connecting a sensor. Unbind it after disconnecting the sensor, otherwise a reconnection will be initialized.

Method Documentation

◆ addOtaDevice:

+ (void) addOtaDevice: (XsensDotDevice *)  device

Add a ota sensor to ota device array

Parameters
deviceThe ota object

◆ allBoundDevices

+ (NSArray <XsensDotDevice *>*) allBoundDevices

Get all bound sensors

Returns
All bound sensors array

◆ allOtaDevices

+ (NSArray <XsensDotDevice *>*) allOtaDevices

Get the ota sensors , after the sensor just done ota ,this will be return.

Returns
The ota devices array

◆ bindDevice:

+ (BOOL) bindDevice: (XsensDotDevice *)  device

Add a sensor to the bound device pool

Parameters
deviceThe XsensDotDevice object

◆ bindDevices:

+ (void) bindDevices: (NSArray< XsensDotDevice * > *)  devices

Add sensors to the bound device pool

Parameters
devicesThe XsensDotDevice array

◆ 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

Provided by category XsensDotDevicePool(Connection).

◆ holdDevice:

+ (void) holdDevice: (XsensDotDevice *)  device

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

Parameters
deviceThe XsensDotDevice object

Provided by category XsensDotDevicePool(Connection).

◆ inquireDeviceWithPeripheral:

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

Inquire sensor with peripheral to check if it is in the connection pool.

Parameters
peripheralthe CBPeripheral object

◆ onCentralStateUpdated

+ (void) onCentralStateUpdated

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

Provided by category XsensDotDevicePool(Connection).

◆ 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

Provided by category XsensDotDevicePool(Connection).

◆ unbindAllDevices

+ (void) unbindAllDevices

Remove all sensors from the bound device pool

◆ unbindDevice:

+ (void) unbindDevice: (XsensDotDevice *)  device

Remove sensor from the bound device pool

Parameters
deviceThe XsensDotDevice object

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