diff options
Diffstat (limited to 'src/components/application_manager/src/commands/hmi')
-rw-r--r-- | src/components/application_manager/src/commands/hmi/on_device_chosen_notification.cc | 2 | ||||
-rw-r--r-- | src/components/application_manager/src/commands/hmi/on_device_state_changed_notification.cc | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/components/application_manager/src/commands/hmi/on_device_chosen_notification.cc b/src/components/application_manager/src/commands/hmi/on_device_chosen_notification.cc index 5d73c7b80..441538bee 100644 --- a/src/components/application_manager/src/commands/hmi/on_device_chosen_notification.cc +++ b/src/components/application_manager/src/commands/hmi/on_device_chosen_notification.cc @@ -50,7 +50,7 @@ void OnDeviceChosenNotification::Run() { if ((*message_)[strings::msg_params].keyExists(strings::device_info)) { ApplicationManagerImpl::instance()->ConnectToDevice( (*message_)[strings::msg_params][strings::device_info][strings::id] - .asInt()); + .asString()); } } diff --git a/src/components/application_manager/src/commands/hmi/on_device_state_changed_notification.cc b/src/components/application_manager/src/commands/hmi/on_device_state_changed_notification.cc index fbb2bcfe9..b41eb6b86 100644 --- a/src/components/application_manager/src/commands/hmi/on_device_state_changed_notification.cc +++ b/src/components/application_manager/src/commands/hmi/on_device_state_changed_notification.cc @@ -95,8 +95,7 @@ void OnDeviceStateChangedNotification::Run() { .asString(); if (device_id.empty()) { if ((*message_)[strings::msg_params].keyExists("deviceId")) { - device_id = MessageHelper::GetDeviceMacAddressForHandle( - (*message_)[strings::msg_params]["deviceId"]["id"].asInt()); + device_id = (*message_)[strings::msg_params]["deviceId"]["id"].asString(); } } else { // Policy uses hashed MAC address as device_id |