edu.uiuc.cs.seclab.modem.xbee
Class XBeeAtPacketImpl
java.lang.Object
edu.uiuc.cs.seclab.modem.xbee.XBeeApiPacketImpl
edu.uiuc.cs.seclab.modem.xbee.XBeeOutPktImpl
edu.uiuc.cs.seclab.modem.xbee.XBeeAtPacketImpl
public class XBeeAtPacketImpl
- extends XBeeOutPktImpl
|
Field Summary |
protected java.lang.String |
atCmd
|
static byte |
CMD_ID
Should be applied immediately |
static int |
CMD_LEN
|
static byte |
CMD_NOIMMED_ID
Should not be applied immediately |
protected XBeeAtCmd.Mode |
mode
Command should be applied immediately? |
protected java.lang.String |
parms
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
atCmd
protected java.lang.String atCmd
CMD_ID
public static final byte CMD_ID
- Should be applied immediately
- See Also:
- Constant Field Values
CMD_LEN
public static final int CMD_LEN
- See Also:
- Constant Field Values
CMD_NOIMMED_ID
public static final byte CMD_NOIMMED_ID
- Should not be applied immediately
- See Also:
- Constant Field Values
mode
protected XBeeAtCmd.Mode mode
- Command should be applied immediately?
parms
protected java.lang.String parms
XBeeAtPacketImpl
public XBeeAtPacketImpl()
XBeeAtPacketImpl
public XBeeAtPacketImpl(XBeeAtCmd.Mode mode_,
byte frameId_,
java.lang.String string,
java.lang.String parms_)
throws ModemException
- Throws:
ModemException
acceptVisitor
public void acceptVisitor(XBeeApiPacketVisitor visitor)
- Specified by:
acceptVisitor in class XBeeApiPacketImpl
getCmdId
public byte getCmdId()
- Specified by:
getCmdId in class XBeeApiPacketImpl
getMode
public XBeeAtCmd.Mode getMode()
localGetData
protected void localGetData(java.lang.StringBuilder sb)
- Description copied from class:
XBeeApiPacketImpl
- Produce a data blob for the inner part of an API packet
- Specified by:
localGetData in class XBeeApiPacketImpl
parse
public void parse(byte cmdId,
byte[] bytes,
int offset,
int len)
- Description copied from class:
XBeeApiPacketImpl
- Parse the inner part of an API packet
- Specified by:
parse in class XBeeApiPacketImpl
toString
public java.lang.String toString()
- Overrides:
toString in class XBeeApiPacketImpl