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.git
cd iot-edge-samples/js/simple
npm install
to install pre-built core runtime of IoT Edge.npm run local
to 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.git
cd iot-edge-samples/java/timer
mvn package
to build your module with all dependencies.mvn exec:exec
to 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 2015
with Update 3. ### Quick Start git clone https://github.com/Azure-Samples/iot-edge-samples.git
cd iot-edge-samples\dotnet\nuget_sample\src
- Open the
DotnetModuleSample.sln
solution file. - In the
Visual Studio 2015
IDESolution Explorer
right click theDotnetModuleSample
and selectproperties
from the context menu. - Click
Debug
and update theExecutable
text 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
Start
button in theVisual Studio 2015
IDE or press theF5
key. - Press the
Enter
key to exit theAzure IoT Edge
gateway 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.git
cd iot-edge-samples\dotnetcore\nuget_sample\src
- Open the
NetstandardModuleSample.sln
solution file. - In the
Visual Studio 2017 IDE
Solution Explorer right click theNetstandardModuleSample
and selectproperties
from the context menu. - Click
Debug
and update theExecutable
option to$(OutDir)gw.exe
and theApplication arguments:
tomodule_dev_sample.json
. - Build the
NetstandardModuleSample
project (Ctrl
+Shift
+B
). - Click the
Start
button in theVisual Studio 2017 IDE
or press theF5
key. - Press the
Enter
key to exit theAzure IoT Edge
gateway process.