Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
restructure directory, update readme files and copyrights
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcd-msft committed Apr 25, 2019
1 parent d73a8dc commit 3da86ab
Show file tree
Hide file tree
Showing 14 changed files with 117 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Samples/EdgeModules/ConsoleDotNetCoreWinML/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

These are the available versions of this Azure IoT Edge module sample:

* [C#](./CS/README.md)
* [C#](./CS/README.md)

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact <[email protected]> with any additional questions or comments.
34 changes: 34 additions & 0 deletions Samples/EdgeModules/Gpio/CS/ConsoleDotNetCoreGPIO.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<Import Project="..\..\Common.CS.Props"/>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.19.0" />
<PackageReference Include="Mono.Options.Core" Version="1.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="YamlDotNet" Version="5.3.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Common\CS\Common\Common.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="Windows.Devices.DevicesLowLevelContract">
<HintPath>$(WindowsSdkPath)\Windows.Devices.DevicesLowLevelContract\3.0.0.0\Windows.Devices.DevicesLowLevelContract.winmd</HintPath>
<IsWinMDFile>true</IsWinMDFile>
</Reference>
<Reference Include="Windows.Foundation.FoundationContract">
<HintPath>$(WindowsSdkPath)\Windows.Foundation.FoundationContract\3.0.0.0\Windows.Foundation.FoundationContract.winmd</HintPath>
<IsWinMDFile>true</IsWinMDFile>
</Reference>
<Reference Include="Windows.Foundation.UniversalApiContract">
<HintPath>$(WindowsSdkPath)\Windows.Foundation.UniversalApiContract\7.0.0.0\Windows.Foundation.UniversalApiContract.winmd</HintPath>
<IsWinMDFile>true</IsWinMDFile>
</Reference>
</ItemGroup>

</Project>
13 changes: 13 additions & 0 deletions Samples/EdgeModules/Gpio/CS/Properties/Dockerfile.nano
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM iotedgewinmlcontainerregistry.azurecr.io/nano

USER ContainerUser

ARG EXE_DIR=.

WORKDIR /app

COPY $EXE_DIR/ ./

ENV IPInterfaceName vEthernet (Ethernet)

CMD ["ConsoleDotNetCoreGPIO.exe -l"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<TargetFramework>netcoreapp2.2</TargetFramework>
<PublishDir>bin\Release\netcoreapp2.2\publish\</PublishDir>
<SelfContained>false</SelfContained>
<_IsPortable>true</_IsPortable>
</PropertyGroup>
</Project>
7 changes: 7 additions & 0 deletions Samples/EdgeModules/Gpio/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# WinRT GPIO Azure IoT Edge module

These are the available versions of this Azure IoT Edge module sample:

* [C#](./CS/README.md)

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact <[email protected]> with any additional questions or comments.
7 changes: 7 additions & 0 deletions Samples/EdgeModules/HubEventHandler/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# HubEventHandler Azure Function for IoT Hub Events

These are the available versions of this Azure IoT Edge module sample:

* [C#](./CS/README.md)

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact <[email protected]> with any additional questions or comments.
22 changes: 13 additions & 9 deletions Samples/EdgeModules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ description: Learn how to leverage sample modules to demonstrate the various fea
# Azure IoT Edge Modules on Windows IoT

This directory contains sample modules demonstrating various features of Azure IoT Edge on Windows.
Each of these samples can be treated as standalone samples that show how to use each Windows feature from an edge module.
Additionally, several of them are designed to work together to demonstrate coordinating a set of modules in cooperation and distributed across multiple edge devices. See [MultiModule Architecture](./readme.multimodule.md) for an overview of how the multiple module coordination is designed and installed.

<table>
<tr>
<td><a href="./ConsoleDotNetCoreWinML">ConsoleDotNetCoreWinML</a></td>
<td><a href="./I2CTempHumidity">I2CTempHumidity</a></td>
<td><a href="./SerialIOPorts">SerialIOPorts</a></td>
<td><a href="./SerialWin32">SerialWin32</a></td>
<td><a href="./SqueezeNetObjectDetection">SqueezeNetObjectDetection</a></td>
</tr>
</table>
## Samples

| Readme | C# Project |
|--------| ---------- |
|[Window Machine Learning (WinML) with Azure Custom Vision Service Fruit Object Classifier Model](./ConsoleDotNetCoreWinML/Readme.md)| [FruitWinML](./ConsoleDotnetCoreWinML/CS/ConsoleDotnetCoreWinml/ConsoleDotNetCoreWinML.csproj)|
|[Serial I/O using PInvoke to Config Manager and Classic Win32 Serial APIs)](./SerialWin32/Readme.md)| [SerialWin32](./SerialWin32/CS/SerialWin32.csproj)|
|[Windows Machine Learning using SqueezeNet Object Detection Model](./ConsoleDotNetCoreWinML/Readme.md) from the [ONNX Model Zoo](https://github.com/onnx/models/tree/master/squeezenet)| [SqueezeNetObjectDetection](./squeezenetobjectdetection/cs/squeezenetobjectdetection.csproj)|
|[GPIO using standard WinRT Simple Peripheral Bus APIs](./gpio/Readme.md)| [GPIO](./Gpio/CS/ConsoleDotNetCoreGPIO/ConsoleDotNetCoreGPIO.csproj)|
|[Azure Function that responds to Azure IoT Hub events and reflects GPIO state across devices](./HubEventHandler/README.Md)| [HubEventHandler](./HubEventHandler/cs/HubEventHandler.csproj)|
|[I2C TempHumidity Sensor](./I2CTempHumidity/README.md)|[I2CTempHumidity](./I2CTempHumidity/CS/I2CTempHumidity)|
|[Serial IO using legacy comX ports with classic .net APIs](./SerialIoPorts/README.md)[SerialIoPorts](./SerialIoPorts/CS/SerialIoPorts.csproj)|
25 changes: 25 additions & 0 deletions Samples/EdgeModules/README.multimodule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# MultiModule Overview

## Design

The fruit WinML project is trained to recognize four objects. When it detects an object change it sends an [Azure IoT Device to Cloud Message](https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-messaging
) with the name of the object in the message.
The GPIO module listens for copies of those messages and maps the object name to a colored LED which is turned on and off via GPIO pins according to the following table:

|Object|LED Color|
|------|---------|
| Apple | Red |
| Grapes | Blue |
| Pear | Yellow |
| Pen | Green |

The pin number to color mappings are configurable from the GPIO [Module Twin Desired Properties](https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-module-twins). Thus, the same module application can be used for different boards.

## Installation

In you Azure Subscription you need a resource group that contains the following resources:

* Azure IoT Hub
* Azure Container Registry
* Azure Storage
* Azure Function App
2 changes: 1 addition & 1 deletion Samples/EdgeModules/SerialWin32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

These are the available versions of this Azure IoT Edge module sample:

* [C#](./CS/README.md)
* [C#](./CS/README.md)

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact <[email protected]> with any additional questions or comments.
2 changes: 1 addition & 1 deletion Samples/EdgeModules/SqueezeNetObjectDetection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

These are the available versions of this Azure IoT Edge module sample:

* [C#](./cs/README.md)
* [C#](./cs/README.md)

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact <[email protected]> with any additional questions or comments.

0 comments on commit 3da86ab

Please sign in to comment.