| | |
| | | } |
| | | |
| | | [System.Serializable] |
| | | public class AddedDeviceSingleBindResponseAllData : ErrorResponCommon |
| | | { |
| | | /// <summary> |
| | | /// 网关直接反馈绑定设备信息 |
| | | /// </summary> |
| | | public AddedDeviceSingleBindResponseData addedDeviceSingleBindResponseData; |
| | | } |
| | | |
| | | [System.Serializable] |
| | | public class AddedDeviceBindResponseData |
| | | { |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public int Result = -1; |
| | | } |
| | | |
| | | [System.Serializable] |
| | | public class AddedDeviceSingleBindResponseData |
| | | { |
| | | /// <summary> |
| | | /// 控制设备节点的mac地址 |
| | | /// </summary> |
| | | public string DeviceAddr; |
| | | /// <summary> |
| | | /// 控制设备节点的端口号 |
| | | /// </summary> |
| | | public int Epoint; |
| | | /// <summary> |
| | | ///绑定名称 |
| | | /// </summary> |
| | | public string BindName; |
| | | /// <summary> |
| | | /// 0:成功,针对场景和跨网关绑定 |
| | | ///<para>1:失败,节点设备或场景不存在。</para> |
| | | ///<para>2:同网关设备绑定,等待控制源设备写入反馈结果;以下面主题结果为准</para> |
| | | /// </summary> |
| | | public int Result = -1; |
| | | /// <summary> |
| | | /// 绑定类型 |
| | | ///<para>0:绑定设备 </para> |
| | | ///<para>1:绑定场景</para> |
| | | /// </summary> |
| | | public int BindType; |
| | | /// <summary> |
| | | ///绑定的cluster数组 |
| | | /// </summary> |
| | | public List<int> BindClusterList = new List<int>(); |
| | | /// <summary> |
| | | /// 绑定设备Mac地址, 当BindType=0时存在 |
| | | /// </summary> |
| | | public string BindMacAddr; |
| | | /// <summary> |
| | | /// 绑定设备的端口号,当BindType=0时存在 |
| | | /// </summary> |
| | | public int BindEpoint; |
| | | /// <summary> |
| | | /// 绑定场景,当BindType=2时存在 |
| | | /// </summary> |
| | | public int BindScenesId; |
| | | /// <summary> |
| | | ///绑定的设备或场景的名称 |
| | | /// </summary> |
| | | public string ESName; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 绑定列表的信息 |
| | |
| | | /// </summary> |
| | | public int BindType; |
| | | /// <summary> |
| | | /// 绑定的cluster,需要控制设备的OutCluster列表中存在该cluster。 |
| | | ///如绑定某个设备的on/off,为6。 |
| | | ///绑定的clusters数组,需要控制设备的OutCluster列表中存在该cluster。如绑定某个设备的on/off,为6。如绑定场景,填族Id为6 |
| | | /// </summary> |
| | | public int BindCluster; |
| | | public List<int> BindClusterList = new List<int>(); |
| | | /// <summary> |
| | | /// 绑定设备Mac地址, 当BindType=0时存在 |
| | | /// </summary> |
| | |
| | | public int BindScenesId; |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region 解除绑定 |
| | | |
| | | |
| | | /// <summary> |
| | | ///解除绑定数据,网关反馈信息 |
| | | /// </summary> |