Xsens DOT iOS SDK
©2022 Xsens Technologies - Version: 2022.0.0
|
#import <XsensDotDevicePool.h>
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 |
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.
+ (void) addOtaDevice: | (XsensDotDevice *) | device |
Add a ota sensor to ota device array
device | The ota object |
+ (NSArray <XsensDotDevice *>*) allBoundDevices |
Get all bound sensors
+ (NSArray <XsensDotDevice *>*) allOtaDevices |
Get the ota sensors , after the sensor just done ota ,this will be return.
+ (BOOL) bindDevice: | (XsensDotDevice *) | device |
Add a sensor to the bound device pool
device | The XsensDotDevice object |
+ (void) bindDevices: | (NSArray< XsensDotDevice * > *) | devices |
Add sensors to the bound device pool
devices | The XsensDotDevice array |
+ (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 .
peripheral | The CBPeripheral object |
Provided by category XsensDotDevicePool(Connection).
+ (void) holdDevice: | (XsensDotDevice *) | device |
Add a sensor to connected device pool, Prevent the same sensor from connecting multiple times
device | The XsensDotDevice object |
Provided by category XsensDotDevicePool(Connection).
+ (XsensDotDevice *) inquireDeviceWithPeripheral: | (CBPeripheral *) | peripheral |
Inquire sensor with peripheral to check if it is in the connection pool.
peripheral | the CBPeripheral object |
+ (void) onCentralStateUpdated |
The bluetooth state of phone updated (Turn on or turn off bluetooth)
Provided by category XsensDotDevicePool(Connection).
+ (void) releaseDevice: | (XsensDotDevice *) | device |
Release a sensor from connected device list, if a sensor has disconnected ,we must release it.
device | The XsensDotDevice object |
Provided by category XsensDotDevicePool(Connection).
+ (void) unbindAllDevices |
Remove all sensors from the bound device pool
+ (void) unbindDevice: | (XsensDotDevice *) | device |
Remove sensor from the bound device pool
device | The XsensDotDevice object |