Constructs a new CoapPacket with protocol version 1
Encodes the current CoapPacket into the byte sequence
Returns the code
Returns the message id
Returns the token
Returns the length of the currently set token
Returns the type of message
Returns the protocol version
Sets the code
Sets the message ID
Sets the payload for this message
Sets the token
Sets the message type
Returns a string represenation of this packet
Decodes the given bytes into a CoapPacket
Represents a CoAP packet