use of com.zsmartsystems.zigbee.dongle.xbee.internal.protocol.XBeeTransmitStatusResponse in project com.zsmartsystems.zigbee by zsmartsystems.
the class XBeeResponseFactoryTest method testGetResponse1.
@Test
public void testGetResponse1() {
int[] data = getPacketData("00 07 8B 8F F7 7B 00 00 40 33");
XBeeResponse frame = XBeeResponseFactory.getXBeeFrame(data);
assertTrue(frame instanceof XBeeTransmitStatusResponse);
System.out.println(frame);
XBeeTransmitStatusResponse event = (XBeeTransmitStatusResponse) frame;
assertEquals(Integer.valueOf(143), event.getFrameId());
assertEquals(Integer.valueOf(0), event.getTransmitRetryCount());
assertEquals(DeliveryStatus.SUCCESS, event.getDeliveryStatus());
assertEquals(DiscoveryStatus.EXTENDED_TIMEOUT_DISCOVERY, event.getDiscoveryStatus());
}
Aggregations