com.rapplogic.xbee.api
Class ModemStatusResponse
java.lang.Object
com.rapplogic.xbee.api.XBeeResponse
com.rapplogic.xbee.api.ModemStatusResponse
- All Implemented Interfaces:
- NoRequestResponse, java.io.Serializable
public class ModemStatusResponse
- extends XBeeResponse
- implements NoRequestResponse
RF module status messages are sent from the module in response to specific conditions.
API ID: 0x8a
- Author:
- andrew
- See Also:
- Serialized Form
Methods inherited from class com.rapplogic.xbee.api.XBeeResponse |
equals, finish, getApiId, getChecksum, getLength, getPacketBytes, getProcessedPacketBytes, getRawPacketBytes, hashCode, isError, setApiId, setChecksum, setError, setLength, setRawPacketBytes |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ModemStatusResponse
public ModemStatusResponse()
getStatus
public ModemStatusResponse.Status getStatus()
setStatus
public void setStatus(ModemStatusResponse.Status status)
parse
protected void parse(IPacketParser parser)
throws java.io.IOException
- Description copied from class:
XBeeResponse
- All subclasses must implement to parse the packet from the input stream.
The subclass must parse all bytes in the packet starting after the API_ID, and
up to but not including the checksum. Reading either more or less bytes that expected will
result in an error.
- Specified by:
parse
in class XBeeResponse
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class XBeeResponse