I have set-up and run the the assetData sample app provided in Legato Framework 17.07.
The Room information is successfully being pushed to airvantage and is showing up in the communication timeline.
What I am wondering is, how do I now interact with this app via airvantage (i.e trigger commands, push data back to mangoh).
The application definition specifies that AirVantage can do the following actions:
* Retrieve the name of the room, the current room temperature and the current status of the AC (On or Off)
* Set the target temperature of the room, the AC is automatically switched On
* Trigger a command to turn off the AC
After that you can create a widget to push data back to the module.
On the source code of your sample application, you need to register the handler like below:(be careful of the path below)
bool isOn = false;
le_avdata_GetBoolArg(argumentList, "isOn", &isOn);
LE_INFO("ExecLightCtrlCmd isOn=%d",isOn);
// Reply the AirVantage server with the command execution result.
le_avdata_ReplyExecResult(argumentList, LE_OK);
Thank you, but I am trying to display the data on another website. So what I am wondering is, can I fetch this data via a HTTP request? Do you know if the Airvantage REST api let’s you do this?