generator-az-iot-gw-module
v1.2.0
Published
Create a Node module for azure iot edge.
Downloads
12
Maintainers
Readme
Contributing
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
Azure IoT Edge Module Generator
generator-az-iot-gw-module
creates a base template to start a new edge module in Node.js.
Prerequisites
- Install latest Node LTS.
npm install -g yo
npm install -g generator-az-iot-gw-module
Usage
$yo az-iot-gw-module
Note that this template will generate files in the current directory, so be sure always to run it against a new directory
Running module(s) on edge
Once the project is scaffolded, at the root folder run:
$npm install
$npm start
Further Steps
- Modify the source code of
printer.js
andsensor.js
to provide more features. - Refer to NODE Module Sample to learn how to connect to Azure IoT Hub.