Ignition

State

Status

Declaration

getStatus()

Example

val state:Ignition.State
assertTrue(state.status.value == OnOffState.OFF)
// Ignition is off

Accessories status

Declaration

getAccessoriesStatus()

Example

val state:Ignition.State
assertTrue(state.accessoriesStatus.value == OnOffState.ON)
// Accessories power is on

State

Declaration

getState()

Example

val state:Ignition.State
assertTrue(state.state.value == Ignition.IgnitionState.ACCESSORY)
// Ignition state is in accessory

Setters

Turn ignition on off

Declaration

public TurnIgnitionOnOff(OnOffState status)

Example

val turnIgnitionOnOff = Ignition.TurnIgnitionOnOff(OnOffState.OFF)    

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)