Перейти к файлу
Vincenzo Caruso c4a38b6e8f Merge pull request #28 from Azure/dependabot/npm_and_yarn/babel/traverse-7.23.2
Bump @babel/traverse from 7.20.12 to 7.23.2
2023-10-19 09:12:04 -07:00
.azuredevops update version 2023-05-04 10:25:12 +02:00
.bundle fix vulnerabilities 2022-04-13 11:10:43 +02:00
.github/workflows update azuredevops config 2023-05-03 18:05:33 +02:00
__tests__ react-native update ios 2021-03-15 16:09:53 +01:00
android update version 2023-05-04 10:25:12 +02:00
docs update readme 2023-06-01 15:39:05 +02:00
ios update version 2023-05-04 10:25:12 +02:00
patches update pods and sdk 2023-05-03 16:59:38 +02:00
src update readme 2023-06-01 15:15:39 +02:00
.buckconfig react-native update ios 2021-03-15 16:09:53 +01:00
.eslintrc.js fix vulnerabilities 2022-04-13 11:10:43 +02:00
.flowconfig fix vulnerabilities 2022-04-13 11:10:43 +02:00
.gitattributes use git attribute 2021-05-26 16:00:26 +02:00
.gitignore fix vulnerabilities 2022-04-13 11:10:43 +02:00
.prettierrc.js fix vulnerabilities 2022-04-13 11:10:43 +02:00
.ruby-version fix vulnerabilities 2022-04-13 11:10:43 +02:00
.svgrrc react-native update ios 2021-03-15 16:09:53 +01:00
.watchmanconfig react-native update ios 2021-03-15 16:09:53 +01:00
Gemfile fix vulns 2023-03-24 10:38:10 +01:00
Gemfile.lock Bump activesupport from 7.0.4.3 to 7.0.7.1 2023-08-24 17:19:16 +00:00
LICENSE adding license and copyright header 2021-06-04 11:47:28 +02:00
README.md update readme 2023-06-01 15:39:05 +02:00
SECURITY.md Microsoft mandatory file 2023-01-24 15:57:55 +00:00
app.json fix ios project files 2021-04-15 16:24:00 +02:00
babel.config.js fix vulnerabilities 2022-04-13 11:10:43 +02:00
bumpVersion.sh revert master versioning 2021-05-19 10:42:35 +02:00
createReleaseFile.sh createRelease script 2021-05-26 17:36:57 +02:00
index.js update build pipelines 2022-06-13 15:52:37 +02:00
metro.config.js fix vulnerabilities 2022-04-13 11:10:43 +02:00
package-lock.json Bump @babel/traverse from 7.20.12 to 7.23.2 2023-10-19 16:11:28 +00:00
package.json update version 2023-05-04 10:25:12 +02:00
podinstall.js react-native update ios 2021-03-15 16:09:53 +01:00
tsconfig.json refactor texts 2021-05-10 15:50:36 +02:00

README.md

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:

  • Telemetry data from real embedded sensors and health platform records.
  • Sample properties (readonly and writeable).
  • Commands handling to enable/disable telemetry items and set their sending interval.
  • Commands logs to trace data in app.
  • Bluetooth Gateway (see Bluetooth.md for documentation/implementation details)

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>