Ignition
State
Status
Declaration
getStatus()
Example
val state:Ignition.State
assertTrue(state.status.value == IgnitionState.OFF)
// Ignition is off
Accessories status
Declaration
getAccessoriesStatus()
Example
val state:Ignition.State
assertTrue(state.accessoriesStatus.value == IgnitionState.ON)
// Accessories power is on
State
Declaration
getState()
Example
val state:Ignition.State
assertTrue(state.state.value == IgnitionState.ACCESSORY)
// Ignition state is in accessory
Setters
Turn ignition on off
Declaration
public TurnIgnitionOnOff(IgnitionState state)
Example
val turnIgnitionOnOff = Ignition.TurnIgnitionOnOff(IgnitionState.ACCESSORY)
Getters
Get Ignition property availability information
Declaration
public GetStateAvailability()
public GetStateAvailability(byte... propertyIdentifiers)
Example
// get all property availabilities
val getAvailability = GetStateAvailability()
// get status and accessoriesStatus property availabilities
val getAvailabilityProperties = GetStateAvailability(0x01, 0x02)
Get Ignition properties
Declaration
public GetState()
public GetState(byte... propertyIdentifiers)
Example
// get all properties
val getState = GetState()
// get status and accessoriesStatus properties
val getStateProperties = GetState(0x01, 0x02)