Power Take-Off
getState([, propertyNames])
Declaration
hmkit.commands.PowerTakeoff.getState()
Parameters
propertyNames | (optional) Array of names of the properties you want returned. |
Returns
PowerTakeoffResponse
Example
hmkit.telematics.sendCommand(
hmkit.commands.PowerTakeoff.getState(),
accessCertificate
);
PowerTakeoffResponse
Parameters
engaged | (Object) |
data.value | (String) (enum) |
timestamp | (Date) |
status | (Object) |
data.value | (String) (enum) |
timestamp | (Date) |
Example
{
"engaged": {
"timestamp": "2021-06-01T15:48:04.887Z",
"data": {
"value": "engaged"
}
},
"status": {
"timestamp": "2021-06-01T15:48:04.887Z",
"data": {
"value": "active"
}
}
}
getAvailability([, propertyNames])
Declaration
hmkit.commands.PowerTakeoff.getAvailability()
Parameters
propertyNames | (optional) Array of names of the properties you want returned. |
Example
// Get availability for all properties
hmkit.telematics.sendCommand(
hmkit.commands.PowerTakeoff.getAvailability(),
accessCertificate
);
// Get availability for specific properties
hmkit.telematics.sendCommand(
hmkit.commands.PowerTakeoff.getAvailability(['status']),
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
{
"status": {
"availability": {
"updateRate": {
"value": "trip_high"
},
"rateLimit": {
"value": 64,
"unit": "hertz"
},
"appliesPer": {
"value": "vehicle"
}
}
}
}
activateDeactivatePowerTakeoff({ status })
Parameters
status | (String) (enum) |
Example
hmkit.telematics.sendCommand(
hmkit.commands.PowerTakeoff.activateDeactivatePowerTakeoff({
"status": "active"
}),
accessCertificate
);