Dashboard lights

State

Dashboard lights

Declaration

getDashboardLights()

Example

val state:DashboardLights.State
assertTrue(state.dashboardLights[0].value?.name == DashboardLight.Name.HIGH_BEAM)
assertTrue(state.dashboardLights[0].value?.state == OnOffState.OFF)
// High beam is off

Bulb failures

Declaration

getBulbFailures()

Discussion

Vehicle light bulb failure

Example

val state:DashboardLights.State
assertTrue(state.bulbFailures[0].value == DashboardLights.BulbFailures.TURN_SIGNAL_RIGHT)
// Right turn signal`s bulb has failed.

Getters

Get Dashboard Lights property availability information

Declaration

public GetDashboardLightsAvailability()
public GetDashboardLightsAvailability(byte... propertyIdentifiers)

Example

// get all property availabilities
val getAvailability = GetDashboardLightsAvailability()
// get dashboardLight and bulbFailure property availabilities
val getAvailabilityProperties = GetDashboardLightsAvailability(0x01, 0x02)

Get dashboard lights

Declaration

public GetDashboardLights()
public GetDashboardLights(byte... propertyIdentifiers)            

Example

// get all properties
val getState = GetDashboardLights()
// get dashboardLight and bulbFailure properties
val getStateProperties = GetDashboardLights(0x01, 0x02)