| | |
| | | /// 用来递增生成Mac用的
|
| | | /// </summary>
|
| | | private int DeviceNumber = 0;
|
| | | /// <summary>
|
| | | /// 是否是游客体验
|
| | | /// </summary>
|
| | | public bool IsExperience
|
| | | {
|
| | | get { return Config.Instance.Guid == "chushiGuid"; }
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | |
|
| | | public void Zigbee空调网关(int i_DeviceCount, string i_RoomId)
|
| | | {
|
| | | var device2 = new OTADevice() { DeviceAddr = "DeviceAddr" + this.DeviceNumber, DeviceEpoint = 200 };
|
| | | //设置设备的基本信息
|
| | | this.SetBaseDataToDevice(device2, 3600, 3600, "MAC/GW-ZB.10", i_RoomId);
|
| | | this.DeviceNumber++;
|
| | | return;
|
| | | for (int i = 0; i < i_DeviceCount; i++)
|
| | | {
|
| | | //10个空调应该可以了
|