[][src]Module toio::proto

Protocol data structures.

Structs

ConfigCollision

Changes the settings of collision detection.

ConfigDoubleTap

Changes the settings of double-tap detection.

ConfigLevel

Changes the settings of level detection.

ConfigVersion

Requests the protocol version.

ConfigVersionRes

The protocol version information.

IdPos

Position id

IdStd

Standard id

LightCtrl

Control lights in accordance with the list of operations.

LightOff

Turns off the specified light.

LightOn

Turns on the specified light.

MotionDetect

The state of the motion sensor.

MotorAcc

The request to move the cube with acceleration.

MotorMultiTarget

The request to visit multiple target positions.

MotorSimple

The simple request to rotate the motor.

MotorTarget

The request to move to the specified position.

MotorTargetRes

The response to the request with target position.

MotorTimed

The request to rotate the motor with duration.

SoundOp

Plays sound with specified note.

SoundPlay

Plays sound in accordance with the list of operations.

SoundPreset

Plays preset sound.

Target

The target position.

Enums

Button

Message from the button.

ButtonState

The state of the button.

Config

Message from/to configuration.

Id

Message from the id reader.

Light

Message to lights.

Message

Message read/written from/to characteristics.

Motion

Message from the motion sensor.

Motor

Message from/to the motor.

MotorCubeDir

The direction of the cube rotation/translation.

MotorDir

The direction of the motor rotation.

MotorId

The id of the motor.

MotorPriority

The priority of translation/rotation speed.

MoveType

The type of the movement.

Note

Sound note.

Posture

Posture of the cube.

Sound

Message to the sound device.

SoundPresetId

The id of preset sound.

SpeedChange

The change of the speed.

TargetResValue

The result value of the request.

WriteOpt

The option for additional requests.

Constants

UUID_BATTERY

The UUID of the battery characteristic of the battery.

UUID_BUTTON

The UUID of the button characteristic.

UUID_CONFIG

The UUID of the configuration characteristic.

UUID_ID

The UUID of the id reader characteristic.

UUID_LIGHT

The UUID of the light characteristic.

UUID_MOTION

The UUID of the motion sensor characteristic.

UUID_MOTOR

The UUID of the motor characteristic.

UUID_SERVICE

The UUID of the toio cube service.

UUID_SOUND

The UUID of the sound device characteristic.