Skip to content

Commit 39d41c4

Browse files
authored
Miscellaneous fixes (#4)
1 parent 1de6f02 commit 39d41c4

19 files changed

+80
-54
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
-----
1313

14-
# Welcome to the **nanoFramework** Aws.IoTCore.Devices repository!
14+
# Welcome to the .NET **nanoFramework** AWS IoT Core SDK repository!
1515

1616
## Build status
1717

@@ -156,7 +156,7 @@ void ShadowUpdatedEvent(object sender, ShadowUpdateEventArgs e)
156156

157157
### Sending message
158158

159-
You have to use the `SendMessage` function to send any kind of message or telemetry to Aws IoT. As with the other function, you have the possibility to ensure delivery using a `CancellationToken` than can be cancelled. If one that can't be cancelled is used, the delivery insurance will be ignored and the function will return false.
159+
You have to use the `SendMessage` function to send any kind of message or telemetry to AWS IoT. As with the other function, you have the possibility to ensure delivery using a `CancellationToken` than can be cancelled. If one that can't be cancelled is used, the delivery insurance will be ignored and the function will return false.
160160

161161
```csharp
162162
var isReceived = awsIoT.SendMessage($"{{\"Temperature\":42,\"Pressure\":1024}}", new CancellationTokenSource(5000).Token);
@@ -249,14 +249,13 @@ The list of contributors to this project can be found at [CONTRIBUTORS](https://
249249

250250
## License
251251

252-
The **nanoFramework** Class Libraries are licensed under the [MIT license](LICENSE.md).
252+
The .NET **nanoFramework** Class Libraries are licensed under the [MIT license](LICENSE.md).
253253

254254
## Code of Conduct
255255

256-
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.
256+
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behaviour in our community.
257257
For more information see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).
258258

259259
### .NET Foundation
260260

261261
This project is supported by the [.NET Foundation](https://dotnetfoundation.org).
262-
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<OutputType>Library</OutputType>
1616
<AppDesignerFolder>Properties</AppDesignerFolder>
1717
<FileAlignment>512</FileAlignment>
18-
<RootNamespace>nanoFramwwork.Aws.IoTCore.Devices.Tests</RootNamespace>
18+
<RootNamespace>nanoFramework.Aws.IoTCore.Devices.Tests</RootNamespace>
1919
<AssemblyName>NFUnitTest</AssemblyName>
2020
<IsCodedUITest>False</IsCodedUITest>
2121
<IsTestProject>true</IsTestProject>
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
// Copyright (c) .Net Foundation. All rights reserved.
2-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
1+
//
2+
// Copyright (c) .NET Foundation and Contributors
3+
// See LICENSE file in the project root for full license information.
4+
//
35

4-
namespace nanoFramwwork.Aws.IoTCore.Devices.Tests
6+
namespace nanoFramework.Aws.IoTCore.Devices.Tests
57
{
68
/// <summary>
79
/// Connection status.
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
//
2+
// Copyright (c) .NET Foundation and Contributors
3+
// See LICENSE file in the project root for full license information.
4+
//
5+
16
using nanoFramework.TestFramework;
27
using System;
38

4-
namespace nanoFramwwork.Aws.IoTCore.Devices.Tests
9+
namespace nanoFramework.Aws.IoTCore.Devices.Tests
510
{
611
[TestClass]
712
public class ShadowTests
@@ -15,7 +20,7 @@ public void get_shadow_json_to_class()
1520
[TestMethod]
1621
public void get_shadow_class_to_json()
1722
{
18-
//technicallly un-necessary, but a good check!
23+
//technically un-necessary, but a good check!
1924
// need to make sure the above method passes before attempting this!
2025
}
2126

@@ -28,8 +33,8 @@ public void update_shadow_recieved_json_to_class()
2833
[TestMethod]
2934
public void create_update_shadow_to_send_class()
3035
{
31-
//technicallly un-necessary, but a good check!
32-
//in the realworld, this would be a different class.
36+
//technically un-necessary, but a good check!
37+
//in the real world, this would be a different class.
3338
// need to make sure the above method passes before attempting this!
3439
}
3540

File renamed without changes.
File renamed without changes.

nanoFramework.Aws.IoTCore.Devices.nuspec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515
<icon>images\nf-logo.png</icon>
1616
<repository type="git" url="https://github.com/nanoframework/nanoFramework.Aws.IoTCore.Devices" commit="$commit$" />
1717
<copyright>Copyright (c) .NET Foundation and Contributors</copyright>
18-
<description>This package includes the .NET nanoFramework.Aws.IoTCore.Devices assembly for nanoFramework C# projects.
19-
This is an SDK for Aws IoTCore.</description>
20-
<summary>nanoFramework.Aws.IoTCore.Devices assembly for nanoFramework C# projects</summary>
21-
<tags>nanoFramework C# csharp netmf netnf AWS IoTCore nanoFramework.Aws.IoTCore.Devices</tags>
18+
<description>This package includes the .NET nanoFramework SDK for AWS IoT Core.&#10;To be used in .NET nanoFramework C# projects targeting AWS IoT Core.</description>
19+
<tags>nanoFramework C# csharp netmf netnf AWS IoT Core nanoFramework.Aws.IoTCore.Devices</tags>
2220
<dependencies>
2321
<dependency id="nanoFramework.CoreLibrary" version="1.10.5" />
2422
<dependency id="nanoFramework.Json" version="2.1.0" />

nanoFramework.Aws.IoTCore.Devices.sln

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ VisualStudioVersion = 16.0.29709.97
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "nanoFramework.Aws.IoTCore.Devices", "nanoFramework.Aws.IoTCore.Devices\nanoFramework.Aws.IoTCore.Devices.nfproj", "{3473C1B1-23F4-4EE3-8709-2D35D01220A6}"
77
EndProject
8-
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "nanoFramwwork.Aws.IoTCore.Devices.Tests", "nanoFramwwork.Aws.IoTCore.Devices.Tests\nanoFramwwork.Aws.IoTCore.Devices.Tests.nfproj", "{99186E17-5D65-4218-9707-97D12A0C8605}"
8+
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "Aws.IoTCore.Devices.UnitTests", "Tests\Aws.IoTCore.Devices.UnitTests.nfproj", "{99186E17-5D65-4218-9707-97D12A0C8605}"
9+
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{97905949-225F-47F4-AD99-42D42E90406D}"
11+
ProjectSection(SolutionItems) = preProject
12+
NuGet.Config = NuGet.Config
13+
version.json = version.json
14+
EndProjectSection
915
EndProject
1016
Global
1117
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1218
Debug|Any CPU = Debug|Any CPU
1319
Release|Any CPU = Release|Any CPU
1420
EndGlobalSection
1521
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16-
{67298667-62F5-4C72-A2CC-22031D6B0D61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17-
{67298667-62F5-4C72-A2CC-22031D6B0D61}.Debug|Any CPU.Build.0 = Debug|Any CPU
18-
{67298667-62F5-4C72-A2CC-22031D6B0D61}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
19-
{67298667-62F5-4C72-A2CC-22031D6B0D61}.Release|Any CPU.ActiveCfg = Release|Any CPU
20-
{67298667-62F5-4C72-A2CC-22031D6B0D61}.Release|Any CPU.Build.0 = Release|Any CPU
21-
{67298667-62F5-4C72-A2CC-22031D6B0D61}.Release|Any CPU.Deploy.0 = Release|Any CPU
2222
{3473C1B1-23F4-4EE3-8709-2D35D01220A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2323
{3473C1B1-23F4-4EE3-8709-2D35D01220A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
2424
{3473C1B1-23F4-4EE3-8709-2D35D01220A6}.Debug|Any CPU.Deploy.0 = Debug|Any CPU

nanoFramework.Aws.IoTCore.Devices/CloudToDeviceMessage.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
// Copyright (c) .Net Foundation. All rights reserved.
2-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
1+
//
2+
// Copyright (c) .NET Foundation and Contributors
3+
// See LICENSE file in the project root for full license information.
4+
//
35

46
using System;
57

0 commit comments

Comments
 (0)