gpt4 book ai didi

com.zsmartsystems.zigbee.zcl.clusters.iaszone.ZoneStatusChangeNotificationCommand类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 06:21:31 26 4
gpt4 key购买 nike

本文整理了Java中com.zsmartsystems.zigbee.zcl.clusters.iaszone.ZoneStatusChangeNotificationCommand类的一些代码示例,展示了ZoneStatusChangeNotificationCommand类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneStatusChangeNotificationCommand类的具体详情如下:
包路径:com.zsmartsystems.zigbee.zcl.clusters.iaszone.ZoneStatusChangeNotificationCommand
类名称:ZoneStatusChangeNotificationCommand

ZoneStatusChangeNotificationCommand介绍

[英]Zone Status Change Notification Command value object class.

Cluster: IAS Zone. Command is sent FROM the server. This command is a specific command used for the IAS Zone cluster.

Code is auto-generated. Modifications may be overwritten!
[中]区域状态更改通知命令值对象类。
集群:IAS区域。命令是从服务器发送的。此命令是用于IAS区域群集的特定命令。
代码是自动生成的。修改可能会被覆盖!

代码示例

代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee

/**
 * The Zone Status Change Notification Command
 *
 * @param zoneStatus {@link Integer} Zone Status
 * @param extendedStatus {@link Integer} Extended Status
 * @return the {@link Future<CommandResult>} command result future
 */
public Future<CommandResult> zoneStatusChangeNotificationCommand(Integer zoneStatus, Integer extendedStatus) {
  ZoneStatusChangeNotificationCommand command = new ZoneStatusChangeNotificationCommand();
  // Set the fields
  command.setZoneStatus(zoneStatus);
  command.setExtendedStatus(extendedStatus);
  return send(command);
}

代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee

@Test
public void test() {
  int[] packet = getPacketData("09 7B 00 24 00 00 00 00 00");
  ZoneStatusChangeNotificationCommand command = new ZoneStatusChangeNotificationCommand();
  DefaultDeserializer deserializer = new DefaultDeserializer(packet);
  ZclFieldDeserializer fieldDeserializer = new ZclFieldDeserializer(deserializer);
  ZclHeader zclHeader = new ZclHeader(fieldDeserializer);
  System.out.println(zclHeader);
  command.deserialize(fieldDeserializer);
  System.out.println(command);
  assertEquals(Integer.valueOf(0x500), command.getClusterId());
  assertEquals(Integer.valueOf(36), command.getZoneStatus());
}

代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee

@Override
  public ZclCommand getResponseFromId(int commandId) {
    switch (commandId) {
      case 0: // ZONE_STATUS_CHANGE_NOTIFICATION_COMMAND
        return new ZoneStatusChangeNotificationCommand();
      case 1: // ZONE_ENROLL_REQUEST_COMMAND
        return new ZoneEnrollRequestCommand();
      default:
        return null;
    }
  }
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

@Override
public void commandReceived(ZclCommand command) {
  logger.debug("{}: ZigBee command report {}", endpoint.getIeeeAddress(), command);
  if (command instanceof ZoneStatusChangeNotificationCommand) {
    ZoneStatusChangeNotificationCommand zoneStatus = (ZoneStatusChangeNotificationCommand) command;
    updateChannelState(zoneStatus.getZoneStatus());
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com