| | |
| | | //添加缓存
|
| | | this.AddDeviceToMemory(ref device);
|
| | |
|
| | | //移除存在的设备内存
|
| | | //移除存在的设备内存 |
| | | string maikey = this.GetDeviceMainKeys(device);
|
| | | if (dicExist.ContainsKey(maikey) == true)
|
| | | {
|
| | |
| | | list.Add(DeviceBeloneType.A传感器);
|
| | |
|
| | | //其他的看着办呗,都是排在后面的,都归为这个属性
|
| | | list.Add(DeviceBeloneType.A未知设备);
|
| | |
|
| | | list.Add(DeviceBeloneType.A未知设备); |
| | | |
| | | return list;
|
| | | }
|
| | |
|
| | |
| | | /// <returns></returns>
|
| | | public bool CheckDeviceIsOnline(CommonDevice i_device)
|
| | | {
|
| | | //0:离线 1:在线 2:正在刷新状态
|
| | | //0:离线 1:在线 2:正在刷新状态 |
| | | return i_device.IsOnline == 1 || i_device.IsOnline == 2;
|
| | | }
|
| | |
|
| | |
| | | this.dicDeviceModelIdEnum["MBU01/M-ZB.10"] = "1305-1200-60000";//紧急按键
|
| | | this.dicDeviceModelIdEnum["MGCD01/ZB.10"] = "1306-1200-60000";//吸顶燃气传感器
|
| | |
|
| | | //PM2.5空气质量传感器 【该设备属于第三方设备,没有镜像ID】
|
| | | this.dicDeviceModelIdEnum["SZ_PM100"] = "1307-1200-60000";//PM2.5空气质量传感器 |
| | |
|
| | | //=========★★继电器类(2300-2499)★★=========
|
| | | this.dicDeviceModelIdEnum["MPR0310-ZB.10"] = "2300-2300-60001";//3路继电器小模块
|
| | | this.dicDeviceModelIdEnum["MFA01-ZB.10"] = "2310-2300-60011";//方悦新风小模块
|
| | |
| | | /// <summary>
|
| | | /// 吸顶燃气传感器
|
| | | /// </summary>
|
| | | Sensor_CeilingGas = 1306,
|
| | | Sensor_CeilingGas = 1306, |
| | | /// <summary> |
| | | /// PM2.5空气质量传感器 |
| | | /// </summary> |
| | | Sensor_PMTwoPointFive = 1307,
|
| | | |
| | | /// <summary>
|
| | | /// 运动传感器
|
| | | /// </summary>
|
| | |
| | | /// <summary>
|
| | | /// 方悦新风小模块 镜像id:2310
|
| | | /// </summary>
|
| | | Relay_FangyueFreshAirModul = 2310,
|
| | |
|
| | | //=========★★调光器类(2500-2799)★★=========
|
| | | Relay_FangyueFreshAirModul = 2310, |
| | | |
| | | //=========★★调光器类(2500-2799)★★========= |
| | | /// <summary>
|
| | | /// 调光器
|
| | | /// </summary>
|