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.
- Install latest Git Client.
- Install latest Node LTS (v6.11.2).
- Install Raspbian-jessie.
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).
- Install latest Git Client.
- Install latest x64 version of JRE.
- Install latest Maven.
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.
- Install latest Git Client.
- Install
Visual Studio 2015with Update 3.
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.
- Install latest Git Client.
- Install
Visual Studio 2017.
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.