The Predix SDK for Hybrid is a comprehensive suite of tools, frameworks, and source examples that will enable and educate you on building mobile applications for the Industrial Internet of Things (IIoT). To get started, follow this documentation:
- Get Started with the Predix Sync and SDKs
- Running the Predix Mobile Sample App
- Creating a Mobile Hello World Web App
Then, come back to this site to find all of the tools and examples to follow along.
##Predix Mobile App Container
The SDK for Hybrid includes Predix Mobile Reference App Containers for Android, iOS, and macOS. The Mobile Reference App Container is a platform-specific environment in which Predix mobile applications are run.
- For Android, you build the Predix Mobile Reference App Container for Android.
- For iOS, you build the Predix Mobile Reference App Container for iOS.
- For Mac, you build the Predix Mobile Reference App Container for macOS.
##pm CLI
The Predix Mobile pm command line tool allows you to manage your Predix Mobile apps and your mobile backend processes. It includes a set of commands that are invoked through the pm command line interface. These tools depend on both the Cloud Foundry and UAAC command line tools, so make sure they are installed and properly configured prior to installing the pm tool. You must install and configure the Cloud Foundry cf CLI and uaac CLI before installing the pm CLI.
##Predix Mobile Client Core Services Framework
The SDK provides several services as REST APIs to provide functionality to hybrid or native Mobile applications. The Client SDK consuming application, the Predix Mobile App Container, can interact with these local services following this general URL structure: http://pmapi//. The Predix Mobile App Container interprets URL requests and delegates them to the services in the Predix Mobile Client Core Services framework , which respond with a JSON payload describing the result of the call.
Documentation on, "how to write a custom service" is available in the JavaSDK readme https://github.build.ge.com/predix-mobile/JavaSDK
For additional technical documentation see the Wiki in this repo.
The following examples show different ways you can use the Predix Mobile SDK. They are not meant for production use.
- WEB-APPs
- Predix Mobile Sample app - MobileExample-WebApp-Sample
- Offline Authentication app - MobileExample-WebApp-OfflineAuthentication
- Send Command app - MobileExample-WebApp-SendCommand
- Asset integration app - MobileExample-WebApp-AssetIntegration
- Microservices
- Sample Command Processor - MobileExample-Microservice-CommandProcessor
- Sample Sync Processor that communicates with Predix Asset service - MobileExample-Microservice-AssetIntegration