X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=app%2Fapi%2FBinding.qml;h=7d996ee2b84fb0151f686fa9c90dfbd1ab655d1c;hb=refs%2Fheads%2Fsandbox%2Fharunobu.kurokawa%2Fals2018;hp=25388df3ffed113302c602cc4f4b5128b706c1c4;hpb=dd747fa9dfc009da9113e310d9b40f6280e7a57a;p=apps%2Fhvac.git diff --git a/app/api/Binding.qml b/app/api/Binding.qml index 25388df..7d996ee 100644 --- a/app/api/Binding.qml +++ b/app/api/Binding.qml @@ -29,6 +29,7 @@ WebSocket { property real rightTemperature: 21.0 property string language: "en_US" + property Connections c : Connections { target: root onFanSpeedChanged: { @@ -40,11 +41,20 @@ WebSocket { var json = [MessageId.call, '9999', 'hvac/set', {'LeftTemperature': leftTemperature}] console.debug(JSON.stringify(json)) sendTextMessage(JSON.stringify(json)) + + var json1 = [MessageId.call, '9999', 'hvac/temp_left_zone_led', {'LeftLed': leftTemperature}] + console.debug(JSON.stringify(json1)) + sendTextMessage(JSON.stringify(json1)) + } onRightTemperatureChanged: { var json = [MessageId.call, '9999', 'hvac/set', {'RightTemperature': rightTemperature}] console.debug(JSON.stringify(json)) sendTextMessage(JSON.stringify(json)) + + var json1 = [MessageId.call, '9999', 'hvac/temp_right_zone_led', {'RightLed': rightTemperature}] + console.debug(JSON.stringify(json1)) + sendTextMessage(JSON.stringify(json1)) } onLanguageChanged: { var json = [MessageId.call, '9999', 'hvac/set', {'Language': language}]