use of com.zsmartsystems.zigbee.dongle.conbee.internal.frame.ConBeeFrame in project com.zsmartsystems.zigbee by zsmartsystems.
the class ConBeeFrameTest method testCreateQuerySendDataStateResponse.
@Test
public void testCreateQuerySendDataStateResponse() {
ConBeeFrame frame = ConBeeFrame.create(new int[] { 0x04, 0x00, 0x00, 0x13, 0x00, 0x0C, 0x00, 0x22, 0x21, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x98, 0xFF });
System.out.println(frame);
assertNotNull(frame);
assertTrue(frame instanceof ConBeeQuerySendDataResponse);
ConBeeQuerySendDataResponse sendDataResponse = (ConBeeQuerySendDataResponse) frame;
assertEquals(0, sendDataResponse.getSequence());
assertEquals(33, sendDataResponse.getRequestId());
assertEquals(ConBeeNetworkState.NET_CONNECTED, sendDataResponse.getDeviceState().getNetworkState());
}
use of com.zsmartsystems.zigbee.dongle.conbee.internal.frame.ConBeeFrame in project com.zsmartsystems.zigbee by zsmartsystems.
the class ConBeeFrameTest method testCreateDeviceStateResponse.
@Test
public void testCreateDeviceStateResponse() {
ConBeeFrame frame = ConBeeFrame.create(new int[] { 0x07, 0x00, 0x00, 0x08, 0x00, 0xA2, 0x00, 0x00, 0x4F, 0xFF });
System.out.println(frame);
assertNotNull(frame);
assertTrue(frame instanceof ConBeeDeviceStateResponse);
assertEquals(0, frame.getSequence());
}
use of com.zsmartsystems.zigbee.dongle.conbee.internal.frame.ConBeeFrame in project com.zsmartsystems.zigbee by zsmartsystems.
the class ConBeeFrameTest method testCreateEnqueueSendDataResponse.
@Test
public void testCreateEnqueueSendDataResponse() {
ConBeeFrame frame = ConBeeFrame.create(new int[] { 0x12, 0x0D, 0x00, 0x09, 0x00, 0x02, 0x00, 0x22, 0x00, 0xB4, 0xFF });
System.out.println(frame);
assertNotNull(frame);
assertTrue(frame instanceof ConBeeEnqueueSendDataResponse);
assertEquals(13, frame.getSequence());
}
Aggregations