Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

OnDeviceStateChanged

Type
Notification
Sender
HMI
Purpose
Inform about BLUETOOTH device state changed

SDL PoliciesManager needs this notification for updating the data in policies database. Information about unpaired device will cause SDL PoliciesManager to remove all data related to it from the database.

Must

Notify SDL when the state of bluetooth paired device has been changed.

Note

SDL ignores all invalid notifications which come from HMI (invalid JSON, invalid data types/bounds etc).
Unpairing of the device is NOT a trigger for new PTU sequence.

Parameters

Name Type Mandatory Additional
deviceState Common.DeviceState true -
deviceInternalId String true minlength: 0
maxlength: 500
deviceId Common.DeviceInfo false -

JSON Example Notification

{
    "jsonrpc" : "2.0",
    "method" : "SDL.OnDeviceStateChanged",
    "params" :  
    {
        "deviceInternalId":"0017CAF56A51",
      "deviceState":"UNPAIRED"  }
}
View on GitHub.com
Previous Section Next Section