diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -74,18 +74,24 @@ Then test following verbs using api ***hvac***: - ping : Ping the binder - get_temp_left_zone : Get the left zone temperature - get_temp_right_zone : Get the right zone temperature - - set_temp_left_zone : Set the left zone temperature - - set_temp_right_zone : Set the right zone temperature - - set_fanspeed : Set fanspeed - get_fanspeed : Read fan speed - get_all : Read all values + - set : Set value(s) ```C # afb-client-demo ws://localhost:<chosen_port>/api?token=<chosen_token> -auth connect -ON-REPLY 1:auth/connect: {"response":{"token":"A New Token and Session Context Was Created"},"jtype":"afb-reply","request":{"status":"success","token":"4dc950c6-856d-4cff-81e7-f914b4319008","uuid":"7a687f25-90db-4d4f-8881-2e505c151176"}} hvac get_all -ON-REPLY 2:hvac/get_all: {"response":{"LeftTemperature":21,"RightTemperature":21,"FanSpeed":0},"jtype":"afb-reply","request":{"status":"success"}} - +ON-REPLY 1:hvac/get_all: {"response":{"LeftTemperature":21,"RightTemperature":21,"FanSpeed":0},"jtype":"afb-reply","request":{"status":"success","uuid":"f6175a3f-f57a-49ae-80f5-d215abd6e24c"}} +hvac get_temp_left_zone +ON-REPLY 2:hvac/get_temp_left_zone: {"response":{"LeftTemperature":21},"jtype":"afb-reply","request":{"status":"success","info":"Left zone Temperature is:21 query=\"null\""}} +hvac set {"FanSpeed":23, "RightTemperature": 55, "LeftTemperature": 54} +ON-REPLY 3:hvac/set: {"response":{"FanSpeed":23,"RightTemperature":55,"LeftTemperature":54},"jtype":"afb-reply","request":{"status":"success","info":"HVAC settings updated"}} +hvac get_all +ON-REPLY 4:hvac/get_all: {"response":{"LeftTemperature":54,"RightTemperature":55,"FanSpeed":23},"jtype":"afb-reply","request":{"status":"success"}} +hvac set {"FanSpeed":23} +ON-REPLY 5:hvac/set: {"response":{"FanSpeed":23},"jtype":"afb-reply","request":{"status":"success","info":"HVAC settings updated"}} +hvac get_all +ON-REPLY 6:hvac/get_all: {"response":{"LeftTemperature":54,"RightTemperature":55,"FanSpeed":23},"jtype":"afb-reply","request":{"status":"success"}} ``` + TODO: QML files aren't modified to fit with bindings for now. They have to be modified to make hybrid application works. |