|
@@ -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; }
|
|
|
}
|