Skip to content

Commit

Permalink
Add appId to AlertManeuver and Speak requests (#2533)
Browse files Browse the repository at this point in the history
  • Loading branch information
GetmanetsIrina authored Apr 12, 2021
1 parent 67f11b7 commit 221e3eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,15 @@ local allParams = {
--[[ Local Functions ]]
local function alertManeuver(pParams)
local cid = common.getMobileSession():SendRPC("AlertManeuver", pParams.requestParams)
pParams.responseNaviParams.appID = common.getHMIAppId()
common.getHMIConnection():ExpectRequest("Navigation.AlertManeuver", pParams.responseNaviParams)
:Do(function(_, data)
local function alertResp()
common.getHMIConnection():SendResponse(data.id, data.method, "SUCCESS", { })
end
common.runAfter(alertResp, 2000)
end)
pParams.responseTtsParams.appID = common.getHMIAppId()
common.getHMIConnection():ExpectRequest("TTS.Speak", pParams.responseTtsParams)
:Do(function(_, data)
common.getHMIConnection():SendNotification("TTS.Started")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,15 @@ local allParams = {
--[[ Local Functions ]]
local function alertManeuver(pParams)
local cid = common.getMobileSession():SendRPC("AlertManeuver", pParams.requestParams)
pParams.responseNaviParams.appID = common.getHMIAppId()
common.getHMIConnection():ExpectRequest("Navigation.AlertManeuver", pParams.responseNaviParams)
:Do(function(_, data)
local function alertResp()
common.getHMIConnection():SendResponse(data.id, data.method, "SUCCESS", { })
end
common.runAfter(alertResp, 2000)
end)
pParams.responseTtsParams.appID = common.getHMIAppId()
common.getHMIConnection():ExpectRequest("TTS.Speak", pParams.responseTtsParams)
:Do(function(_, data)
common.getHMIConnection():SendNotification("TTS.Started")
Expand Down

0 comments on commit 221e3eb

Please sign in to comment.