Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iot-for-all/iot-central-transform-with-iot-edge
Samples on how to leverage IoT Edge to transform incoming device data before being sent to IoT Central.
https://github.com/iot-for-all/iot-central-transform-with-iot-edge
Last synced: 3 months ago
JSON representation
Samples on how to leverage IoT Edge to transform incoming device data before being sent to IoT Central.
- Host: GitHub
- URL: https://github.com/iot-for-all/iot-central-transform-with-iot-edge
- Owner: iot-for-all
- License: mit
- Created: 2021-02-09T18:29:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-22T09:00:33.000Z (over 1 year ago)
- Last Synced: 2024-05-14T09:33:42.891Z (6 months ago)
- Language: TypeScript
- Size: 2.24 MB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-iotcentral - iot-central-transform-with-iot-edge - ***PRIVATE*** uses Azure IoT Edge to transform and send data to IoT Central (transformation)
README
# Use IoT Edge to transform data for IoT Central
Downstream IoT devices connected to an IoT Edge device send data in various formats. To use the downstream device data in your IoT Central application, you may need to transform the data to make the format compatible with your IoT Central application.This sample shows you how to use an IoT Edge module to perform a simple transformation of downstream device data format from CSV to JSON in the IoT Edge device and forward the transformed data to IoT Central. At a high level, the steps to configure this scenario are:
## Steps
1. Set up an IoT Edge device: Install and provision an IoT Edge device as a gateway and connect the gateway to your IoT Central application.
2. Connect downstream device to the IoT Edge device: Connect downstream devices to the IoT Edge device and provision them to your IoT Central application.
3. Transform device data in IoT Edge: Create an IoT Edge module to transform the data. Deploy the module to the IoT Edge gateway device that forwards the transformed device data to your IoT Central application.
4. Verify: Send data from a downstream device to the gateway and verify the transformed device data reaches your IoT Central application.
In the example described in the following sections, the downstream device sends CSV data in the following format to the IoT Edge gateway device:
```
", , "
```You want to use an IoT Edge module to transform the data to the following JSON format before it's sent to IoT Central:
```
{
"device": {
"deviceId": ""
},
"measurements": {
"temp": ,
"pressure": ,
"humidity": ,
}
}
```## Instructions to set up and configure the sample
For detailed instructions on how to set up and configure the sample, see [Transform data for IoT Central > Data transformation at ingress](https://docs.microsoft.com/azure/iot-central/core/howto-transform-data#data-transformation-at-ingress)