From 9cd2343a5d813495e0f13496a82f1e5e06838aee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E4=BC=9F?= <421281095@qq.com>
Date: Wed, 11 Jun 2025 09:03:16 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9cloudsdk=E7=BB=93=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
OpenAuth.WebApi/CloudSdk/GatewayManager.cs | 22 +++++++++++++++++++
OpenAuth.WebApi/CloudSdk/GatewayType.cs | 2 +-
.../CloudSdk/{ => mqtt}/MqttClientManager.cs | 0
OpenAuth.WebApi/OpenAuth.WebApi.csproj | 6 +++++
4 files changed, 29 insertions(+), 1 deletion(-)
create mode 100644 OpenAuth.WebApi/CloudSdk/GatewayManager.cs
rename OpenAuth.WebApi/CloudSdk/{ => mqtt}/MqttClientManager.cs (100%)
diff --git a/OpenAuth.WebApi/CloudSdk/GatewayManager.cs b/OpenAuth.WebApi/CloudSdk/GatewayManager.cs
new file mode 100644
index 0000000..c09c3aa
--- /dev/null
+++ b/OpenAuth.WebApi/CloudSdk/GatewayManager.cs
@@ -0,0 +1,22 @@
+namespace OpenAuth.WebApi.CloudSdk;
+
+public class GatewayManager
+{
+ public string GatewaySn { get; set; }
+ public string DroneSn { get; set; }
+ public GatewayType GatewayType { get; set; }
+
+ ///
+ /// 机场任务准备异常通知
+ ///
+ public string FlightSetupExceptionNotify =
+ TopicConst.ThingModelPre + TopicConst.Product + "%s" + TopicConst.EventsSuffix;
+
+ public GatewayManager(string gatewaySn, string droneSn, GatewayType gatewayType)
+ {
+ GatewaySn = gatewaySn;
+ DroneSn = droneSn;
+ GatewayType = gatewayType;
+ }
+
+}
\ No newline at end of file
diff --git a/OpenAuth.WebApi/CloudSdk/GatewayType.cs b/OpenAuth.WebApi/CloudSdk/GatewayType.cs
index 444be8e..990b763 100644
--- a/OpenAuth.WebApi/CloudSdk/GatewayType.cs
+++ b/OpenAuth.WebApi/CloudSdk/GatewayType.cs
@@ -3,5 +3,5 @@
public class GatewayType
{
public string Dock = "1";
- public string M300 = "2";
+ public string M4TD = "2";
}
\ No newline at end of file
diff --git a/OpenAuth.WebApi/CloudSdk/MqttClientManager.cs b/OpenAuth.WebApi/CloudSdk/mqtt/MqttClientManager.cs
similarity index 100%
rename from OpenAuth.WebApi/CloudSdk/MqttClientManager.cs
rename to OpenAuth.WebApi/CloudSdk/mqtt/MqttClientManager.cs
diff --git a/OpenAuth.WebApi/OpenAuth.WebApi.csproj b/OpenAuth.WebApi/OpenAuth.WebApi.csproj
index c8f3586..9e70f12 100644
--- a/OpenAuth.WebApi/OpenAuth.WebApi.csproj
+++ b/OpenAuth.WebApi/OpenAuth.WebApi.csproj
@@ -80,6 +80,12 @@
+
+
+
+
+
+