- getOptions
Gets the set of options. If no set has been defined yet, it creates a new one.
EmptyMessages should
- getMID
Gets the 16-bit message identification.
- getPayload
Gets the raw payload.
- getRawCode
Gets the raw integer value of this message's code.
- getToken
Gets the 0--8 byte token.
- getType
Gets the message type ( Type#CON, Type#NON, Type#ACK or Type#RST). If no type
has been defined, the
- setMID
Sets the 16-bit message identification. Provides a fluent API to chain setters.
- setPayload
Sets the payload. Provides a fluent API to chain setters.
- setSource
Sets the source address. Not part of the fluent API.
- setSourcePort
Sets the source port. Not part of the fluent API.
- setToken
Sets the token, which can be 0--8 bytes. Provides a fluent API to chain setters.
- setType
Sets the CoAP message type. Provides a fluent API to chain setters.