This sample web app sends a command to backend and displays the response.
It is assumed that you already have running instances of Predix Mobile service and pushed your command-processor to your CF space (or running on your development system).
To get started, follow this documentation:
- [Get Started with the Mobile Service and Mobile SDK] (https://www.predix.io/docs#rae4EfJ6)
- [Running the Predix Mobile Sample App] (https://www.predix.io/docs#EGUzWwcC)
- [Creating a Mobile Hello World Web App] (https://www.predix.io/docs#DrBWuHkl)
Update the commandRoute variable in MobileCommand.js file to the URL registered using PM CLI tool (ex. pm add-route <command-route> <processor-url>).
Checkout this repository, open the folder in a terminal window, and execute:
pm publish
Press Send Command button once to see name of logged in user. Tap again to send a test command. The Status area and Text area display status of command.