@Test public void doRequest() { ConBeeDeviceStateChanged response = new ConBeeDeviceStateChanged( new int[] { 0x0E, 0x11, 0x00, 0x07, 0x00, 0xA6, 0x00, 0x34, 0xFF }); System.out.print(response); assertEquals(17, response.getSequence()); assertEquals(ConBeeStatus.SUCCESS, response.getStatus()); assertEquals(ConBeeNetworkState.NET_CONNECTED, response.getDeviceState().getNetworkState()); assertTrue(response.getDeviceState().isDataConfirm()); assertFalse(response.getDeviceState().isDataIndication()); assertTrue(response.getDeviceState().isDataRequest()); assertFalse(response.getDeviceState().isConfigChanged()); }
@Override public ConBeeDeviceState getDeviceState() { return state; }
ConBeeDeviceStateChanged extends ConBeeFrameResponse { @Override public ConBeeDeviceState getDeviceState() { return state; } }
ConBeeDeviceStateChanged extends ConBeeFrameResponse { @Override public ConBeeDeviceState getDeviceState() { return state; } ConBeeDeviceStateChanged(final int[] response); }
ConBeeDeviceStateChanged extends ConBeeFrameResponse { @Override public ConBeeDeviceState getDeviceState() { return state; } ConBeeDeviceStateChanged(final int[] response); @Override ConBeeDeviceState getDeviceState(); @Override String toString(); }
ConBeeDeviceStateChanged extends ConBeeFrameResponse { @Override public ConBeeDeviceState getDeviceState() { return state; } ConBeeDeviceStateChanged(final int[] response); @Override ConBeeDeviceState getDeviceState(); @Override String toString();  }