Azure IoT Edge Module Samples
September 1, 2017 ยท View on GitHub
This tutorial shows how to setup your IoT Edge module development environment (Windows/Ubuntu Linux), write a module, customize and initialize the IoT Edge instance. It includes samples for JavaScript, Java, and .NET modules.
If you encounter an issue related to these samples please submit a new issue. For issues related to the IoT Edge or the packages please go to the IoT Edge repo and submit an issue.
How to run the JavaScript module sample (Windows 10/Ubuntu 14+/Debian/Raspbian)
Prerequisites
- Install latest Git Client.
- Install latest Node LTS (v6.11.2).
Raspbian:
- Install Raspbian-jessie.
Quick Start
git clone https://github.com/Azure-Samples/iot-edge-samples.gitcd iot-edge-samples/js/simplenpm installto install pre-built core runtime of IoT Edge.npm run localto start the IoT Edge with pre-defined modules (sensor and printer).
How to run the Java module sample (Windows 10/Ubuntu 14+)
Prerequisites
- Install latest Git Client.
- Install latest x64 version of JRE.
- Install latest Maven.
Quick Start
git clone https://github.com/Azure-Samples/iot-edge-samples.gitcd iot-edge-samples/java/timermvn packageto build your module with all dependencies.mvn exec:execto start the IoT Edge with pre-defined module.
How to run the .NET module sample (Windows 10)
Prerequisites
- Install latest Git Client.
- Install
Visual Studio 2015with Update 3.
Quick Start
git clone https://github.com/Azure-Samples/iot-edge-samples.gitcd iot-edge-samples\dotnet\nuget_sample\src- Open the
DotnetModuleSample.slnsolution file. - In the
Visual Studio 2015IDESolution Explorerright click theDotnetModuleSampleand selectpropertiesfrom the context menu. - Click
Debugand update theExecutabletext box with the location and name of the executable to run by typing "<path to your output directory>\gw.exe" and update theApplication arguments:tomodule_dev_sample.json. - Build the DotnetModuleSample project (
Ctrl+Shift+B). - Click the
Startbutton in theVisual Studio 2015IDE or press theF5key. - Press the
Enterkey to exit theAzure IoT Edgegateway process.
How to run .NET Standard v1.3 module sample (Windows 10)
Prerequisites
- Install latest Git Client.
- Install
Visual Studio 2017.
Quick Start
git clone https://github.com/Azure-Samples/iot-edge-samples.gitcd iot-edge-samples\dotnetcore\nuget_sample\src- Open the
NetstandardModuleSample.slnsolution file. - In the
Visual Studio 2017 IDESolution Explorer right click theNetstandardModuleSampleand selectpropertiesfrom the context menu. - Click
Debugand update theExecutableoption to$(OutDir)gw.exeand theApplication arguments:tomodule_dev_sample.json. - Build the
NetstandardModuleSampleproject (Ctrl+Shift+B). - Click the
Startbutton in theVisual Studio 2017 IDEor press theF5key. - Press the
Enterkey to exit theAzure IoT Edgegateway process.