Skip to content

Commit 010b441

Browse files
authored
Adding AT Modem with Azure IoT managed library sample (#322)
* adjusting sample for AT Modem * updating sample with setting up time * adding basic sample * adjusting doc * recreating properly the Basic sample * fixing build * fixing resx * fixing nit * adjusting package.config * fixing nfproj
1 parent bb5dc1b commit 010b441

File tree

13 files changed

+782
-2
lines changed

13 files changed

+782
-2
lines changed

Diff for: samples/AzureSDK/AzureSDKBasic/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,4 @@ void CloudToDeviceMessageEvent(object sender, CloudToDeviceMessageEventArgs e)
223223
Console.WriteLine("Reboot requested");
224224
CloseAndGoToSleep();
225225
}
226-
}
226+
}

Diff for: samples/AzureSDK/AzureSDKBasic/Resource.resx

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@
121121
<data name="AzureRootCerts" type="System.Resources.ResXFileRef, System.Windows.Forms">
122122
<value>Resource\AzureRootCerts.pem;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
123123
</data>
124-
</root>
124+
</root>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup Label="Globals">
4+
<NanoFrameworkProjectSystemPath>$(MSBuildExtensionsPath)\nanoFramework\v1.0\</NanoFrameworkProjectSystemPath>
5+
</PropertyGroup>
6+
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.Default.props" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.Default.props')" />
7+
<PropertyGroup>
8+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
9+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
10+
<ProjectTypeGuids>{11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
11+
<ProjectGuid>eff73131-09b6-4451-8390-3c6ddb225acd</ProjectGuid>
12+
<OutputType>Exe</OutputType>
13+
<AppDesignerFolder>Properties</AppDesignerFolder>
14+
<FileAlignment>512</FileAlignment>
15+
<RootNamespace>AzureSDKBasic</RootNamespace>
16+
<AssemblyName>AzureSDKBasic</AssemblyName>
17+
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion>
18+
</PropertyGroup>
19+
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.props" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.props')" />
20+
<ItemGroup>
21+
<Compile Include="Program.cs" />
22+
<Compile Include="Properties\AssemblyInfo.cs" />
23+
<Compile Include="Resource.Designer.cs">
24+
<DesignTime>True</DesignTime>
25+
<AutoGen>True</AutoGen>
26+
<DependentUpon>Resource.resx</DependentUpon>
27+
</Compile>
28+
</ItemGroup>
29+
<ItemGroup>
30+
<Reference Include="Iot.Device.AtModem">
31+
<HintPath>packages\nanoFramework.Iot.Device.AtModem.1.0.1\lib\Iot.Device.AtModem.dll</HintPath>
32+
</Reference>
33+
<Reference Include="mscorlib, Version=1.14.3.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
34+
<HintPath>packages\nanoFramework.CoreLibrary.1.14.2\lib\mscorlib.dll</HintPath>
35+
<Private>True</Private>
36+
</Reference>
37+
<Reference Include="nanoFramework.Azure.Devices.Client">
38+
<HintPath>packages\nanoFramework.Azure.Devices.Client.FullyManaged.1.2.3\lib\nanoFramework.Azure.Devices.Client.dll</HintPath>
39+
</Reference>
40+
<Reference Include="nanoFramework.Hardware.Esp32">
41+
<HintPath>packages\nanoFramework.Hardware.Esp32.1.6.8\lib\nanoFramework.Hardware.Esp32.dll</HintPath>
42+
</Reference>
43+
<Reference Include="nanoFramework.Json, Version=2.2.99.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
44+
<HintPath>packages\nanoFramework.Json.2.2.99\lib\nanoFramework.Json.dll</HintPath>
45+
<Private>True</Private>
46+
</Reference>
47+
<Reference Include="nanoFramework.M2Mqtt.Core">
48+
<HintPath>packages\nanoFramework.M2Mqtt.Core.5.1.94\lib\nanoFramework.M2Mqtt.Core.dll</HintPath>
49+
</Reference>
50+
<Reference Include="nanoFramework.ResourceManager, Version=1.2.13.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
51+
<HintPath>packages\nanoFramework.ResourceManager.1.2.13\lib\nanoFramework.ResourceManager.dll</HintPath>
52+
<Private>True</Private>
53+
</Reference>
54+
<Reference Include="nanoFramework.Runtime.Events, Version=1.11.6.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
55+
<HintPath>packages\nanoFramework.Runtime.Events.1.11.6\lib\nanoFramework.Runtime.Events.dll</HintPath>
56+
<Private>True</Private>
57+
</Reference>
58+
<Reference Include="nanoFramework.Runtime.Native, Version=1.6.6.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
59+
<HintPath>packages\nanoFramework.Runtime.Native.1.6.6\lib\nanoFramework.Runtime.Native.dll</HintPath>
60+
<Private>True</Private>
61+
</Reference>
62+
<Reference Include="nanoFramework.System.Collections, Version=1.5.18.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
63+
<HintPath>packages\nanoFramework.System.Collections.1.5.18\lib\nanoFramework.System.Collections.dll</HintPath>
64+
<Private>True</Private>
65+
</Reference>
66+
<Reference Include="nanoFramework.System.Text, Version=1.2.37.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
67+
<HintPath>packages\nanoFramework.System.Text.1.2.37\lib\nanoFramework.System.Text.dll</HintPath>
68+
<Private>True</Private>
69+
</Reference>
70+
<Reference Include="System.IO.Ports">
71+
<HintPath>packages\nanoFramework.System.IO.Ports.1.1.60\lib\System.IO.Ports.dll</HintPath>
72+
</Reference>
73+
<Reference Include="System.IO.Streams, Version=1.1.38.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
74+
<HintPath>packages\nanoFramework.System.IO.Streams.1.1.38\lib\System.IO.Streams.dll</HintPath>
75+
<Private>True</Private>
76+
</Reference>
77+
<Reference Include="System.Math">
78+
<HintPath>packages\nanoFramework.System.Math.1.5.29\lib\System.Math.dll</HintPath>
79+
</Reference>
80+
<Reference Include="System.Threading, Version=1.1.19.33722, Culture=neutral, PublicKeyToken=c07d481e9758c731">
81+
<HintPath>packages\nanoFramework.System.Threading.1.1.19\lib\System.Threading.dll</HintPath>
82+
<Private>True</Private>
83+
</Reference>
84+
<Reference Include="UnitsNet.ElectricPotential">
85+
<HintPath>packages\UnitsNet.nanoFramework.ElectricPotential.5.34.0\lib\UnitsNet.ElectricPotential.dll</HintPath>
86+
</Reference>
87+
<Reference Include="UnitsNet.Ratio">
88+
<HintPath>packages\UnitsNet.nanoFramework.Ratio.5.34.0\lib\UnitsNet.Ratio.dll</HintPath>
89+
</Reference>
90+
</ItemGroup>
91+
<ItemGroup>
92+
<None Include="packages.config" />
93+
<None Include="Resources\DigiCertGlobalRootG2.der" />
94+
</ItemGroup>
95+
<ItemGroup>
96+
<EmbeddedResource Include="Resource.resx">
97+
<Generator>nFResXFileCodeGenerator</Generator>
98+
<LastGenOutput>Resource.Designer.cs</LastGenOutput>
99+
</EmbeddedResource>
100+
</ItemGroup>
101+
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets')" />
102+
<ProjectExtensions>
103+
<ProjectCapabilities>
104+
<ProjectConfigurationsDeclaredAsItems />
105+
</ProjectCapabilities>
106+
</ProjectExtensions>
107+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.3.32929.385
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "AzureSDKBasic", "AzureSDKBasic.nfproj", "{EFF73131-09B6-4451-8390-3C6DDB225ACD}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{EFF73131-09B6-4451-8390-3C6DDB225ACD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{EFF73131-09B6-4451-8390-3C6DDB225ACD}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{EFF73131-09B6-4451-8390-3C6DDB225ACD}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
17+
{EFF73131-09B6-4451-8390-3C6DDB225ACD}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{EFF73131-09B6-4451-8390-3C6DDB225ACD}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{EFF73131-09B6-4451-8390-3C6DDB225ACD}.Release|Any CPU.Deploy.0 = Release|Any CPU
20+
{9EDF2863-99AC-4CA1-93FE-F48ED3C6D45F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{9EDF2863-99AC-4CA1-93FE-F48ED3C6D45F}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{9EDF2863-99AC-4CA1-93FE-F48ED3C6D45F}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
23+
{9EDF2863-99AC-4CA1-93FE-F48ED3C6D45F}.Release|Any CPU.ActiveCfg = Release|Any CPU
24+
{9EDF2863-99AC-4CA1-93FE-F48ED3C6D45F}.Release|Any CPU.Build.0 = Release|Any CPU
25+
{9EDF2863-99AC-4CA1-93FE-F48ED3C6D45F}.Release|Any CPU.Deploy.0 = Release|Any CPU
26+
{35948E70-4CE5-45B4-B305-B66B20AB67AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{35948E70-4CE5-45B4-B305-B66B20AB67AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{35948E70-4CE5-45B4-B305-B66B20AB67AD}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
29+
{35948E70-4CE5-45B4-B305-B66B20AB67AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
30+
{35948E70-4CE5-45B4-B305-B66B20AB67AD}.Release|Any CPU.Build.0 = Release|Any CPU
31+
{35948E70-4CE5-45B4-B305-B66B20AB67AD}.Release|Any CPU.Deploy.0 = Release|Any CPU
32+
EndGlobalSection
33+
GlobalSection(SolutionProperties) = preSolution
34+
HideSolutionNode = FALSE
35+
EndGlobalSection
36+
GlobalSection(ExtensibilityGlobals) = postSolution
37+
SolutionGuid = {F64DB981-B12F-4875-BD8A-F7416D7B79AD}
38+
EndGlobalSection
39+
EndGlobal

0 commit comments

Comments
 (0)