本文整理了Java中com.zsmartsystems.zigbee.dongle.cc2531.frame.ZdoSimpleDescriptor
类的一些代码示例,展示了ZdoSimpleDescriptor
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZdoSimpleDescriptor
类的具体详情如下:
包路径:com.zsmartsystems.zigbee.dongle.cc2531.frame.ZdoSimpleDescriptor
类名称:ZdoSimpleDescriptor
暂无
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
@Test
public void testReceive2() {
ZToolPacket data = getPacket(
"FE 18 45 84 21 A4 00 21 A4 12 02 04 01 01 00 00 02 00 00 03 00 03 05 00 06 00 08 00 C4");
ZigBeeApsFrame apsFrame = ZdoSimpleDescriptor.create(data);
assertEquals(42017, apsFrame.getSourceAddress());
assertEquals(0, apsFrame.getProfile());
assertEquals(0, apsFrame.getDestinationEndpoint());
assertTrue(Arrays.equals(getPacketData("A4 00 21 A4 12 02 04 01 01 00 00 02 00 00 03 00 03 05 00 06 00 08 00"),
apsFrame.getPayload()));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
@Test
public void testReceive1() {
ZToolPacket data = getPacket(
"FE 2E 45 84 00 00 00 00 00 28 01 04 01 00 00 00 00 10 00 00 01 00 02 00 03 00 04 00 05 00 06 00 07 00 08 00 09 00 0F 00 0A 00 0C 00 15 00 00 01 01 01 CF");
ZigBeeApsFrame apsFrame = ZdoSimpleDescriptor.create(data);
assertEquals(0x0000, apsFrame.getSourceAddress());
assertEquals(0, apsFrame.getProfile());
assertEquals(0, apsFrame.getDestinationEndpoint());
assertTrue(Arrays.equals(
getPacketData(
"00 00 00 00 28 01 04 01 00 00 00 00 10 00 00 01 00 02 00 03 00 04 00 05 00 06 00 07 00 08 00 09 00 0F 00 0A 00 0C 00 15 00 00 01 01 01"),
apsFrame.getPayload()));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
break;
case ZToolCMD.ZDO_SIMPLE_DESC_RSP:
apsFrame = ZdoSimpleDescriptor.create(packet);
break;
case ZToolCMD.ZDO_MGMT_LQI_RSP:
内容来源于网络,如有侵权,请联系作者删除!