Honk Horn & Flash Lights

getFlashersState([, propertyNames])

Declaration

hmkit.commands.HonkHornFlashLights.getFlashersState()

Parameters

propertyNames

(optional) Array of names of the properties you want returned.

Returns

HonkHornFlashLightsResponse

Example

hmkit.telematics.sendCommand(
  hmkit.commands.HonkHornFlashLights.getFlashersState(),
  accessCertificate
);

HonkHornFlashLightsResponse

Parameters

flashers(Object)
data.value

(String) (enum)

timestamp

(Date)

Example

{
  "flashers": {
    "timestamp": "2021-06-01T15:48:04.887Z",
    "data": {
      "value": "left_flasher_active"
    }
  }
}

getAvailability([, propertyNames])

Declaration

hmkit.commands.HonkHornFlashLights.getAvailability()

Parameters

propertyNames

(optional) Array of names of the properties you want returned.

Example

// Get availability for all properties
hmkit.telematics.sendCommand(
  hmkit.commands.HonkHornFlashLights.getAvailability(),
  accessCertificate
);
// Get availability for specific properties
hmkit.telematics.sendCommand(
  hmkit.commands.HonkHornFlashLights.getAvailability(['flashers']),
  accessCertificate
);

Response

Parameters

availability(Object)
updateRate.value

(String) enum

rateLimit.value

(Number)

rateLimit.unit

(String)

appliesPer.value

(String)

Discussion

The response contains an availability object for each property, as shown in the example

Example

{
  "flashers": {
    "availability": {
      "updateRate": {
        "value": "trip_high"
      },
      "rateLimit": {
        "value": 64,
        "unit": "hertz"
      },
      "appliesPer": {
        "value": "vehicle"
      }
    }
  }
}

honkFlash({ honkTime, flashTimes })

Parameters

honkTime

(Number) (duration) Time to honk the horn

flashTimes

(Number) (uinteger) Number of times to flash the lights

Example

hmkit.telematics.sendCommand(
  hmkit.commands.HonkHornFlashLights.honkFlash({
    "honkTime": {
      "seconds": 2
    },
    "flashTimes": 5
  }),
  accessCertificate
);

activateDeactivateEmergencyFlasher({ emergencyFlashersState })

Parameters

emergencyFlashersState

(String) (enum)

Example

hmkit.telematics.sendCommand(
  hmkit.commands.HonkHornFlashLights.activateDeactivateEmergencyFlasher({
    "emergencyFlashersState": "active"
  }),
  accessCertificate
);