gpt4 book ai didi

com.zsmartsystems.zigbee.zcl.ZclStatus.getStatus()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 20:49:31 28 4
gpt4 key购买 nike

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

ZclStatus.getStatus介绍

[英]Get a ZclStatus given an integer value
[中]获取给定整数值的ZclStatus

代码示例

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

@Override
  public String toString() {
    StringBuilder builder = new StringBuilder(60);
    builder.append("CommandResult [");
    if (isSuccess()) {
      builder.append("SUCCESS, ");
      builder.append(response);
    } else if (isTimeout()) {
      builder.append("TIMEOUT");
    } else {
      final ZclStatus status = ZclStatus.getStatus((byte) getStatusCode().intValue());
      builder.append("ERROR (");
      builder.append(status.name());
      builder.append(String.format(",0x%02X), ", status.getId()));
      builder.append(response);
    }
    builder.append(']');
    return builder.toString();
  }
}

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

out.println("Group name: " + response.getGroupName());
} else {
  final ZclStatus status = ZclStatus.getStatus((byte) statusCode);
  out.println("Error reading group name: " + status);

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

@Test
  public void getStatus() {
    assertEquals(ZclStatus.SUCCESS, ZclStatus.getStatus(0));
    assertEquals(ZclStatus.UNKNOWN, ZclStatus.getStatus(999));
  }
}

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

out.println("Attribute value write success.");
} else {
  final ZclStatus status = ZclStatus.getStatus((byte) statusCode);
  out.println("Attribute value write error: " + status);

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

break;
case ZCL_STATUS:
  value[0] = ZclStatus.getStatus(payload[index++]);
  break;
case ZDO_STATUS:

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