Home

Awesome

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 Bluetooth-LowEnergy (BLE) devices. It can also receive properties and commands to demonstrate basic functionalities.

Features

The main features of the app are:

You can read more about all features with instructions here.

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.

Setup

git clone https://github.com/Azure/iot-central-paad
cd iot-central-paad
npm install

iOS

Install pods

cd ios && pod install

Build source code

Source code can be validated and formatted to ensure js bundle gets correctly generated. However this does not guarantee the application can run as expected on each platform due to the various native modules. Always run the application on simulators to check functionalities.

Format, Lint and Typescript compile:

npm run build

Run Android

# runs on default simulator (as configured in Android Studio)
npm run android

Run iOS

# runs on default simulator (as configured in XCode)
npm run ios

# runs on specific device
npm run ios --device <device-id>