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