Graphics
Table of Contents
getAvailability([, propertyNames])
Declaration
hmkit.commands.Graphics.getAvailability()
Parameters
propertyNames | (optional) Array of names of the properties you want returned. |
Example
// Get availability for all properties
hmkit.telematics.sendCommand(
hmkit.commands.Graphics.getAvailability(),
accessCertificate
);
// Get availability for specific properties
hmkit.telematics.sendCommand(
hmkit.commands.Graphics.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"
}
}
}
}
displayImage({ imageURL })
Parameters
imageURL | (String) The image URL |
Example
hmkit.telematics.sendCommand(
hmkit.commands.Graphics.displayImage({
"imageURL": "https://about.high-mobility.com/assets/images/hm-logo.svg"
}),
accessCertificate
);