c4a38b6e8f
Bump @babel/traverse from 7.20.12 to 7.23.2 |
||
---|---|---|
.azuredevops | ||
.bundle | ||
.github/workflows | ||
__tests__ | ||
android | ||
docs | ||
ios | ||
patches | ||
src | ||
.buckconfig | ||
.eslintrc.js | ||
.flowconfig | ||
.gitattributes | ||
.gitignore | ||
.prettierrc.js | ||
.ruby-version | ||
.svgrrc | ||
.watchmanconfig | ||
Gemfile | ||
Gemfile.lock | ||
LICENSE | ||
README.md | ||
SECURITY.md | ||
app.json | ||
babel.config.js | ||
bumpVersion.sh | ||
createReleaseFile.sh | ||
index.js | ||
metro.config.js | ||
package-lock.json | ||
package.json | ||
podinstall.js | ||
tsconfig.json |
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
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>