Browse Source

编码修改

DGJ 4 months ago
parent
commit
ced54279c0
1 changed files with 22 additions and 22 deletions
  1. 22 22
      Assets/HotUpdate/Scripts/Scripts/Project/Demo/AIDeviceManager.cs

+ 22 - 22
Assets/HotUpdate/Scripts/Scripts/Project/Demo/AIDeviceManager.cs

@@ -94,7 +94,7 @@ public class AIDeviceManager : MonoSingleton<AIDeviceManager>
         JsonData data = new JsonData();
         switch (id)
         {
-            case 26: // ÎÂʪ¶È
+            case 26: // 温湿度
 
                 if (ishumidity == false)
                 {
@@ -132,8 +132,8 @@ public class AIDeviceManager : MonoSingleton<AIDeviceManager>
                             Dictionary<string, float> dicTemperature = new Dictionary<string, float>();
                             Dictionary<string, float> dicHumidity = new Dictionary<string, float>();
 
-                            dicTemperature = JsonConvert.DeserializeObject<Dictionary<string, float>>(data["data"]["point"]["ζÈ"].ToJson());
-                            dicHumidity = JsonConvert.DeserializeObject<Dictionary<string, float>>(data["data"]["point"]["ʪ¶È"].ToJson());
+                            dicTemperature = JsonConvert.DeserializeObject<Dictionary<string, float>>(data["data"]["point"]["温度"].ToJson());
+                            dicHumidity = JsonConvert.DeserializeObject<Dictionary<string, float>>(data["data"]["point"]["湿度"].ToJson());
 
                             humitureControl.SetDataStatistics(dicTemperature, dicHumidity);
 
@@ -153,7 +153,7 @@ public class AIDeviceManager : MonoSingleton<AIDeviceManager>
              
 
                 break;
-            case 15: // Õñ¶¯
+            case 15: // 振动
                
                 if(isoscillate == false)
                 {
@@ -192,9 +192,9 @@ public class AIDeviceManager : MonoSingleton<AIDeviceManager>
                             Dictionary<string, float> dicSpeed = new Dictionary<string, float>();
                             Dictionary<string, float> dicMove = new Dictionary<string, float>();
 
-                            dicTemperature = JsonConvert.DeserializeObject<Dictionary<string, float>>(data["data"]["point"]["ζÈ"].ToJson());
-                            dicSpeed = JsonConvert.DeserializeObject<Dictionary<string, float>>(data["data"]["point"]["ËÙ¶È"].ToJson());
-                            dicMove = JsonConvert.DeserializeObject<Dictionary<string, float>>(data["data"]["point"]["λÒÆ"].ToJson());
+                            dicTemperature = JsonConvert.DeserializeObject<Dictionary<string, float>>(data["data"]["point"]["温度"].ToJson());
+                            dicSpeed = JsonConvert.DeserializeObject<Dictionary<string, float>>(data["data"]["point"]["速度"].ToJson());
+                            dicMove = JsonConvert.DeserializeObject<Dictionary<string, float>>(data["data"]["point"]["�移"].ToJson());
                             oscillateControl.SetDataStatistics(dicTemperature, dicSpeed, dicMove);
 
 
@@ -212,7 +212,7 @@ public class AIDeviceManager : MonoSingleton<AIDeviceManager>
                
                
                 break;
-            case 6: // ÔëÉù
+            case 6: // 噪声
 
                 if (isnoise == false)
                 {
@@ -244,7 +244,7 @@ public class AIDeviceManager : MonoSingleton<AIDeviceManager>
                             Dictionary<string, float> dicNoise = new Dictionary<string, float>();
 
 
-                            dicNoise = JsonConvert.DeserializeObject<Dictionary<string, float>>(data["data"]["point"]["NOISEÖµ"].ToJson());
+                            dicNoise = JsonConvert.DeserializeObject<Dictionary<string, float>>(data["data"]["point"]["NOISE值"].ToJson());
 
 
                             noiseControl.SetDataStatistics(dicNoise);
@@ -274,7 +274,7 @@ public class AIDeviceManager : MonoSingleton<AIDeviceManager>
                 break;
         }
 
-        // Http ÇëÇó¶ÔÓ¦²ÎÊý
+        // Http 请求对应�数
     }
     
     public void DeviceIdExit(int id)
@@ -311,15 +311,15 @@ public class AIDeviceManager : MonoSingleton<AIDeviceManager>
         {
             switch ((obj["device"]["deviceName"].ToString()))
             {
-                case "Õñ¶¯´«¸ÐÆ÷":
+                case "振动传感器":
                     OscillateMqttData oscillateData = JsonConvert.DeserializeObject<OscillateMqttData>(Msg);
                     oscillateControl.UpdateMqttData(oscillateData);
                     break;
-                case "ÎÂʪ¶È´«¸ÐÆ÷":
+                case "温湿度传感器":
                     HumitureMqttData humitureData = JsonConvert.DeserializeObject<HumitureMqttData>(Msg);
                     humitureControl.UpdateMqttData(humitureData);
                     break;
-                case "ÔëÉù´«¸ÐÆ÷":
+                case "噪声传感器":
                     NoiseMqttData Noise = JsonConvert.DeserializeObject<NoiseMqttData>(Msg);
                     noiseControl.UpdateMqttData(Noise);
                     break;
@@ -342,15 +342,15 @@ public class HumitureData
 {
     public HumitureMqttData mqttData { get; set; }
     /// <summary>
-    /// ÆôÓÃ״̬  0 ½ûÓà  1 ÆôÓÃ
+    /// �用状�  0 �用  1 �用
     /// </summary>
     public string initiateState { get; set; }  
     /// <summary>
-    /// ÔÚÏß״̬  0 ÀëÏß  1 ÔÚÏß  2 δ¼¤»î
+    /// 在线状�  0 离线  1 在线  2 未激活
     /// </summary>
     public string onLineState { get; set; }
     /// <summary>
-    /// ±¨¾¯×´Ì¬ 0±¨¾¯  1 Õý³£
+    /// 报警状� 0报警  1 正常
     /// </summary>
     public string AlarmState { get; set; }
 }
@@ -367,15 +367,15 @@ public class NoiseData
 {
     public NoiseMqttData mqttData { get; set; }
     /// <summary>
-    /// ÆôÓÃ״̬  0 ½ûÓà  1 ÆôÓÃ
+    /// �用状�  0 �用  1 �用
     /// </summary>
     public string initiateState { get; set; }
     /// <summary>
-    /// ÔÚÏß״̬  0 ÀëÏß  1 ÔÚÏß  2 δ¼¤»î
+    /// 在线状�  0 离线  1 在线  2 未激活
     /// </summary>
     public string onLineState { get; set; }
     /// <summary>
-    /// ±¨¾¯×´Ì¬ 0±¨¾¯  1 Õý³£
+    /// 报警状� 0报警  1 正常
     /// </summary>
     public string AlarmState { get; set; }
 }
@@ -391,15 +391,15 @@ public class OscilateData
 {
     public OscillateMqttData mqttData { get; set; }
     /// <summary>
-    /// ÆôÓÃ״̬  0 ½ûÓà  1 ÆôÓÃ
+    /// �用状�  0 �用  1 �用
     /// </summary>
     public string initiateState { get; set; }
     /// <summary>
-    /// ÔÚÏß״̬  0 ÀëÏß  1 ÔÚÏß  2 δ¼¤»î
+    /// 在线状�  0 离线  1 在线  2 未激活
     /// </summary>
     public string onLineState { get; set; }
     /// <summary>
-    /// ±¨¾¯×´Ì¬ 0±¨¾¯  1 Õý³£
+    /// 报警状� 0报警  1 正常
     /// </summary>
     public string AlarmState { get; set; }
 }