/iotc-paad

Primary LanguageTypeScript

Azure IoT Central PaaD

A Phone-as-a-Device solution to easily connect with Azure IoT Central by using a smartphone or tablet as an IoT device.

Android

develop: Build status

What is this?

An useful tool to start playing with Azure IoT Central without using a real IoT device. The smartphone or tablet can send telemetry data from its embedded sensors (accelerometer, gyroscope...) and registered health platforms (Apple Health Kit, Google Fit). It can also receive properties and commands to demonstrate basic functionalities.

Features

The main features of the app are:

  • Telemetry data from real embedded sensors and health platform records.
  • Real-time charts.
  • Sample properties (readonly and writeable).
  • Commands handling to enable/disable telemetry items and set their sending interval.
  • Commands logs to trace data in app.

Build and Run

The application is available for both Android and iOS. It can be run on simulator as well (Android Studio or Xcode required). In this case, sensor data is randomly generated.

Required tools

See React Native Getting Started and click on React Native CLI Quickstart for more detailed instructions. "Installing dependencies" is the section that explains developer setup. If you are developing on Windows for Android you will need:

  1. Node.JS (10+)
  2. Java SE Development Kit (JDK 8+)
  3. Python 2.7+/3.7+
  4. Android Studio
  5. React Native command line interface
  6. Npm or Yarn

To set up a real device for development, follow the instructions for device setup here.

Installation

git clone https://github.com/lucadruda/cpm-poc

cd cpm-poc

yarn install ( or 'npm install' if using npm)