-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dce24b6
commit 1c7bda9
Showing
22 changed files
with
1,069 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file added
BIN
+21 KB
..._console/.vs/NET2MQTT_console/FileContentIndex/2b90248c-c823-46bb-a367-8514abf3dce4.vsidx
Binary file not shown.
Binary file added
BIN
+28.2 KB
..._console/.vs/NET2MQTT_console/FileContentIndex/42f5b402-df7d-495b-aa3c-9c3022b54598.vsidx
Binary file not shown.
Binary file added
BIN
+17.7 KB
..._console/.vs/NET2MQTT_console/FileContentIndex/733cecb2-6c13-4297-8c03-32c3f56db913.vsidx
Binary file not shown.
Binary file added
BIN
+17.2 KB
..._console/.vs/NET2MQTT_console/FileContentIndex/d90aa042-ad9a-41e0-a592-65bc222c4aad.vsidx
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> | ||
</startup> | ||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="DotNetty.Common" publicKeyToken="bc13ca065fa06c29" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-0.7.1.0" newVersion="0.7.1.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-6.0.0.1" newVersion="6.0.0.1" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Text.Encodings.Web" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-4.0.5.1" newVersion="4.0.5.1" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="Microsoft.Bcl.AsyncInterfaces" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Text.Json" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="Azure.Core" publicKeyToken="92742159e12e44c8" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-1.35.0.0" newVersion="1.35.0.0" /> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
</configuration> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.3.32811.315 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SnSYS_IoT", "..\SnSYS_IoT\SnSYS_IoT.csproj", "{E30F9234-2925-4FE4-925C-18762F77EA1E}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTestApp", "..\UnitTestApp\UnitTestApp.csproj", "{2329D490-8209-4C9A-8541-46B0016FA2CD}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{E30F9234-2925-4FE4-925C-18762F77EA1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{E30F9234-2925-4FE4-925C-18762F77EA1E}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{E30F9234-2925-4FE4-925C-18762F77EA1E}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{E30F9234-2925-4FE4-925C-18762F77EA1E}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{2329D490-8209-4C9A-8541-46B0016FA2CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{2329D490-8209-4C9A-8541-46B0016FA2CD}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{2329D490-8209-4C9A-8541-46B0016FA2CD}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{2329D490-8209-4C9A-8541-46B0016FA2CD}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {0117BE6C-47EF-4C03-A064-D122F6BDE6D9} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
|
||
|
||
namespace NET2MQTT_console | ||
{ | ||
// string connectionString, string eventHubEP, string eventHubPath, string sasKey, string sasKeyName | ||
|
||
internal class Program | ||
{ | ||
const string AzureConnectionString = "HostName=airgazerIoT.azure-devices.net;DeviceId=testVehicle01;SharedAccessKey=gHsfleh0PJvQ2B6TQyKgzHXx/0s5NnsXxULJzmNMAro="; | ||
const string AzureEventHubEP = "sb://iothub-ns-airgazerio-24368083-52e3bbdbc1.servicebus.windows.net/"; | ||
const string AzureEventHubPath = "airgazeriot"; | ||
const string SASKey = "IoguqxF4OBoCUenJN1ZC5kOP2rnuo4lp9KeeyC49O64="; | ||
const string SASKeyName = "iothubowner"; | ||
|
||
static void Main(string[] args) | ||
{ | ||
var fleetTwin = new IoTFleet(AzureConnectionString, AzureEventHubEP, AzureEventHubPath, SASKey, SASKeyName); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
|
||
// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 | ||
// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 | ||
// 이러한 특성 값을 변경하세요. | ||
[assembly: AssemblyTitle("NET2MQTT_console")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("NET2MQTT_console")] | ||
[assembly: AssemblyCopyright("Copyright © 2023")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 | ||
// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 | ||
// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. | ||
[assembly: ComVisible(false)] | ||
|
||
// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. | ||
[assembly: Guid("89885f3c-f3ec-4574-8fc0-39743887f617")] | ||
|
||
// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. | ||
// | ||
// 주 버전 | ||
// 부 버전 | ||
// 빌드 번호 | ||
// 수정 버전 | ||
// | ||
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를 | ||
// 기본값으로 할 수 있습니다. | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
[assembly: AssemblyVersion("1.0.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Azure.Core" version="1.35.0" targetFramework="net472" /> | ||
<package id="Azure.Core.Amqp" version="1.3.0" targetFramework="net472" /> | ||
<package id="DotNetty.Buffers" version="0.7.0" targetFramework="net472" /> | ||
<package id="DotNetty.Codecs" version="0.7.0" targetFramework="net472" /> | ||
<package id="DotNetty.Codecs.Mqtt" version="0.7.0" targetFramework="net472" /> | ||
<package id="DotNetty.Common" version="0.7.1" targetFramework="net472" /> | ||
<package id="DotNetty.Handlers" version="0.7.0" targetFramework="net472" /> | ||
<package id="DotNetty.Transport" version="0.7.0" targetFramework="net472" /> | ||
<package id="Microsoft.Azure.Amqp" version="2.6.3" targetFramework="net472" /> | ||
<package id="Microsoft.Azure.Devices" version="1.39.0" targetFramework="net472" /> | ||
<package id="Microsoft.Azure.Devices.Client" version="1.42.0" targetFramework="net472" /> | ||
<package id="Microsoft.Azure.Devices.Shared" version="1.30.3" targetFramework="net472" /> | ||
<package id="Microsoft.Azure.EventHubs" version="4.3.2" targetFramework="net472" /> | ||
<package id="Microsoft.Azure.KeyVault.Core" version="1.0.0" targetFramework="net472" /> | ||
<package id="Microsoft.Azure.Services.AppAuthentication" version="1.0.3" targetFramework="net472" /> | ||
<package id="Microsoft.Bcl.AsyncInterfaces" version="5.0.0" targetFramework="net472" /> | ||
<package id="Microsoft.CSharp" version="4.7.0" targetFramework="net472" /> | ||
<package id="Microsoft.Extensions.DependencyInjection" version="5.0.0" targetFramework="net472" /> | ||
<package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="5.0.0" targetFramework="net472" /> | ||
<package id="Microsoft.Extensions.Logging" version="5.0.0" targetFramework="net472" /> | ||
<package id="Microsoft.Extensions.Logging.Abstractions" version="5.0.0" targetFramework="net472" /> | ||
<package id="Microsoft.Extensions.Options" version="5.0.0" targetFramework="net472" /> | ||
<package id="Microsoft.Extensions.Primitives" version="5.0.0" targetFramework="net472" /> | ||
<package id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="3.14.2" targetFramework="net472" /> | ||
<package id="Microsoft.IdentityModel.JsonWebTokens" version="5.4.0" targetFramework="net472" /> | ||
<package id="Microsoft.IdentityModel.Logging" version="5.4.0" targetFramework="net472" /> | ||
<package id="Microsoft.IdentityModel.Tokens" version="5.4.0" targetFramework="net472" /> | ||
<package id="Microsoft.Rest.ClientRuntime" version="2.3.21" targetFramework="net472" /> | ||
<package id="Microsoft.Win32.Registry" version="4.5.0" targetFramework="net472" /> | ||
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net472" /> | ||
<package id="System.Buffers" version="4.5.1" targetFramework="net472" /> | ||
<package id="System.Collections.Immutable" version="1.5.0" targetFramework="net472" /> | ||
<package id="System.Configuration.ConfigurationManager" version="4.4.1" targetFramework="net472" /> | ||
<package id="System.Diagnostics.Contracts" version="4.3.0" targetFramework="net472" /> | ||
<package id="System.Diagnostics.DiagnosticSource" version="6.0.1" targetFramework="net472" /> | ||
<package id="System.Diagnostics.TraceSource" version="4.3.0" targetFramework="net472" /> | ||
<package id="System.IdentityModel.Tokens.Jwt" version="5.4.0" targetFramework="net472" /> | ||
<package id="System.IO" version="4.3.0" targetFramework="net472" /> | ||
<package id="System.Memory" version="4.5.4" targetFramework="net472" /> | ||
<package id="System.Memory.Data" version="1.0.2" targetFramework="net472" /> | ||
<package id="System.Net.Http" version="4.3.4" targetFramework="net472" /> | ||
<package id="System.Net.Requests" version="4.3.0" targetFramework="net472" /> | ||
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" /> | ||
<package id="System.Reflection.TypeExtensions" version="4.7.0" targetFramework="net472" /> | ||
<package id="System.Runtime" version="4.3.0" targetFramework="net472" /> | ||
<package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net472" /> | ||
<package id="System.Runtime.Serialization.Primitives" version="4.3.0" targetFramework="net472" /> | ||
<package id="System.Security.AccessControl" version="4.5.0" targetFramework="net472" /> | ||
<package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="net472" /> | ||
<package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="net472" /> | ||
<package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="net472" /> | ||
<package id="System.Security.Cryptography.X509Certificates" version="4.3.0" targetFramework="net472" /> | ||
<package id="System.Security.Principal.Windows" version="4.5.0" targetFramework="net472" /> | ||
<package id="System.Text.Encodings.Web" version="4.7.2" targetFramework="net472" /> | ||
<package id="System.Text.Json" version="4.7.2" targetFramework="net472" /> | ||
<package id="System.Threading.Channels" version="4.7.1" targetFramework="net472" /> | ||
<package id="System.Threading.Tasks.Dataflow" version="7.0.0" targetFramework="net472" /> | ||
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net472" /> | ||
<package id="System.ValueTuple" version="4.5.0" targetFramework="net472" /> | ||
<package id="WindowsAzure.Storage" version="9.3.2" targetFramework="net472" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SnSYS_IoT | ||
{ | ||
internal class IoTMessage | ||
{ | ||
public string IP { get; set; } | ||
public int Port { get; set; } | ||
public string Payload { get; set; } | ||
public IoTMessage(string IPaddress, int portNum, string payload) | ||
{ | ||
this.IP = IPaddress; | ||
this.Port = portNum; | ||
this.Payload = payload; | ||
} | ||
} | ||
} |
Oops, something went wrong.