onVehicleProfileAlert
Notification
Notification when a vehicle profile alert is triggered
A notification BeNav sends once you subscribe to it with
setupNotifications. Your application receives it as described in Receiving messages.Fires when the road ahead cannot take the vehicle as configured (too low, too narrow, too heavy, or barred to its dangerous-goods class) reporting which restriction it is and how far ahead.
The driver is warned by BeNav regardless; this notification lets the client application know as well, so a near-miss can be recorded, a pattern of them reviewed, or an operator alerted that a vehicle is repeatedly meeting restrictions it should not be near.
Configuration#
json
{
"name":"onVehicleProfileAlert",
"params": {
"enabled": true
}
}Notification Data#
json
{
"jsonrpc": "2.0",
"method": "onVehicleProfileAlert",
"params": {
"restrictions": [
{ "height": "4.8", "distance": "300" }
]
}
}