Yeoman generator for JS module development on Azure IoT Edge v1 Module. **Note: As IoT Edge v1 is no longer under active development, this tool is not supported.
Перейти к файлу
Su Shi 0b6878772a Update package.json
Update the version of package.json to start to publish a new npm package which adopts the 1.1.4 version of azure-iot-gateway, which supports raspbian and debian.
2017-08-14 10:27:43 -07:00
generators Update index.js 2017-08-14 10:26:11 -07:00
.editorconfig add templates for generator. 2017-03-23 01:15:19 -07:00
.gitattributes add templates for generator. 2017-03-23 01:15:19 -07:00
.gitignore add templates for generator. 2017-03-23 01:15:19 -07:00
LICENSE Initial commit 2017-03-16 21:27:21 -07:00
README.md Remove period from yo installation command (#1) 2017-08-07 16:56:41 -07:00
index.js Refactoring the generator. 2017-03-28 18:00:47 -07:00
package.json Update package.json 2017-08-14 10:27:43 -07:00

README.md

Contributing

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com 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

  1. Install latest Node LTS.
  2. npm install -g yo
  3. 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

  1. Modify the source code of printer.js and sensor.js to provide more features.
  2. Refer to NODE Module Sample to learn how to connect to Azure IoT Hub.