Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.54 KB

File metadata and controls

31 lines (21 loc) · 1.54 KB

MobileExample-WebApp-AssetIntegration

A sample web app that displays data from asset service.

Before You Begin:

It is assumed that you have running instances of Predix Mobile service and Predix Asset service, and you have installed the Predix Mobile pm command line tool.
It is also assumed that you have pushed your sync-processor to your CF space (or have it running on your development system).

To get started, follow this documentation:

Configuration

Update userName and assetZoneID variables in index.html with your mobile service user and asset service zone id respectively.

Installation

Checkout this repository, open the folder in a terminal window, and execute:

pm publish

Tip: Checkout webapp.json for the app name. And, you might need to run pm publish based on your app.json configuration.

Usage

When running on a device/simulator, the app shows two buttons and a text area (when in landscape mode).

  • [Refresh] - Sends a request to SDK and gets the asset results and updates text area.
  • [Watch Changes] - Start watching for changes on asset document and update the text area with new results.