本文整理了Java中com.zsmartsystems.zigbee.zcl.ZclStatus.getStatus()
方法的一些代码示例,展示了ZclStatus.getStatus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZclStatus.getStatus()
方法的具体详情如下:
包路径:com.zsmartsystems.zigbee.zcl.ZclStatus
类名称: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:
内容来源于网络,如有侵权,请联系作者删除!