CubeBase
Hierarchy
- CubeBase
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
+ new CubeBase(device
: BluetoothDevice): CubeBase
Defined in cube/cubeBase.ts:65
Parameters:
Name | Type |
---|---|
device | BluetoothDevice |
Returns: CubeBase
Properties
batteryChar
• batteryChar: CubeBatteryChar | undefined = undefined
Implementation of CubeBaseIF.batteryChar
Defined in cube/cubeBase.ts:48
buttonChar
• buttonChar: CubeButtonChar | undefined = undefined
Implementation of CubeBaseIF.buttonChar
Defined in cube/cubeBase.ts:50
configChar
• configChar: CubeConfigChar | undefined = undefined
Implementation of CubeBaseIF.configChar
Defined in cube/cubeBase.ts:51
idChar
• idChar: CubeIDChar | undefined = undefined
Implementation of CubeBaseIF.idChar
Defined in cube/cubeBase.ts:44
lightChar
• lightChar: CubeLightChar | undefined = undefined
Implementation of CubeBaseIF.lightChar
Defined in cube/cubeBase.ts:46
motorChar
• motorChar: CubeMotorChar | undefined = undefined
Implementation of CubeBaseIF.motorChar
Defined in cube/cubeBase.ts:45
name
• name: string | undefined = undefined
Defined in cube/cubeBase.ts:52
sensorChar
• sensorChar: CubeSensorChar | undefined = undefined
Implementation of CubeBaseIF.sensorChar
Defined in cube/cubeBase.ts:47
soundChar
• soundChar: CubeSoundChar | undefined = undefined
Implementation of CubeBaseIF.soundChar
Defined in cube/cubeBase.ts:49
Methods
connect
▸ connect(): Promise‹CubeBase›
Implementation of CubeBaseIF
Defined in cube/cubeBase.ts:77
Connect to the toio™Core Cube. Internally, this function includes GATT connect and prepare for all of the Characteristics.
Returns: Promise‹CubeBase›
Promise. resolve
handler says that API access to cube are available.
disconnect
▸ disconnect(): void
Implementation of CubeBaseIF
Defined in cube/cubeBase.ts:140
Disconnet from the toio™Core Cube.
Returns: void
setFrameRate
▸ setFrameRate(fps
: number): void
Implementation of CubeBaseIF
Defined in cube/cubeBase.ts:195
Set framerate.
Parameters:
Name | Type |
---|---|
fps | number |
Returns: void