diff options
author | Justin Dickow <jjdickow@gmail.com> | 2015-04-29 20:20:13 -0400 |
---|---|---|
committer | Justin Dickow <jjdickow@gmail.com> | 2015-04-29 20:20:13 -0400 |
commit | faf288c60a94e24b492e2a8cc38d1e1a6507ec08 (patch) | |
tree | fe2df45c62773bbb07dd35e856264fe720afeb37 | |
parent | d8d4fa41466380773a4ff443077550b562879201 (diff) | |
download | smartdevicelink-faf288c60a94e24b492e2a8cc38d1e1a6507ec08.tar.gz |
Respond to ButtonPress Request with success.
Signed-off-by: Justin Dickow <jjdickow@gmail.com>
-rw-r--r-- | src/components/HMI/ffw/ButtonsRPC.js | 11 | ||||
-rw-r--r-- | src/components/application_manager/src/commands/mobile/button_press_response.cc | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/components/HMI/ffw/ButtonsRPC.js b/src/components/HMI/ffw/ButtonsRPC.js index 0e1371f0e..7334243cd 100644 --- a/src/components/HMI/ffw/ButtonsRPC.js +++ b/src/components/HMI/ffw/ButtonsRPC.js @@ -222,7 +222,16 @@ FFW.Buttons = FFW.RPCObserver.create( { this.client.send(JSONMessage); } else if (request.method == "Buttons.ButtonPress") { - Em.Logger.log("Reveived Button Press"); + Em.Logger.log("Received Button Press"); + var JSONMessage = { + "jsonrpc": "2.0", + "id": request.id, + "result": { + "code": 0, + "method": "Buttons.ButtonPress" + } + }; + this.client.send(JSONMessage); } }, diff --git a/src/components/application_manager/src/commands/mobile/button_press_response.cc b/src/components/application_manager/src/commands/mobile/button_press_response.cc index 4a6c9829f..64e33a5f6 100644 --- a/src/components/application_manager/src/commands/mobile/button_press_response.cc +++ b/src/components/application_manager/src/commands/mobile/button_press_response.cc @@ -47,7 +47,7 @@ ButtonPressResponse::~ButtonPressResponse() { void ButtonPressResponse::Run() { LOG4CXX_INFO(logger_, "ButtonPressResponse::Run"); - // TODO: something + ApplicationManagerImpl::instance()->SendMessageToMobile(message_); } |