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.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).
- Install latest Git Client.
- Install latest x64 version of JRE.
- Install latest Maven.
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.
- Install latest Git Client.
- Install
Visual Studio 2015
with Update 3.
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.
- Install latest Git Client.
- Install
Visual Studio 2017
.
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.