|
SatCat5
|
CoAP message header CODE field (Section 12.1).
Definition at line 29 of file coap_constants.h.
#include <coap_constants.h>
Public Member Functions | |
| constexpr | Code (u8 val) |
| Create x.yy from raw byte. | |
| constexpr | Code (u8 x, u8 yy) |
| Create x.yy from x and yy. | |
| constexpr | Code (const Code &other) |
| Copy constructor. | |
| Code & | operator= (const Code &other) |
| Assignment operator. | |
| constexpr u8 | category () const |
| Return the "x" from x.yy. | |
| constexpr u8 | subtype () const |
| Return the "yy" from x.yy. | |
| bool | operator== (const Code &other) const |
| bool | operator!= (const Code &other) const |
| constexpr bool | is_empty () const |
| Category tests: 0.00 = Empty (may be request or response) 0.01-0.31 = Request 2.00-2.31 = Success 4.00-4.31 = Client error 5.00-5.31 = Server error. | |
| constexpr bool | is_request () const |
| Category tests: 0.00 = Empty (may be request or response) 0.01-0.31 = Request 2.00-2.31 = Success 4.00-4.31 = Client error 5.00-5.31 = Server error. | |
| constexpr bool | is_success () const |
| Category tests: 0.00 = Empty (may be request or response) 0.01-0.31 = Request 2.00-2.31 = Success 4.00-4.31 = Client error 5.00-5.31 = Server error. | |
| constexpr bool | is_error () const |
| Category tests: 0.00 = Empty (may be request or response) 0.01-0.31 = Request 2.00-2.31 = Success 4.00-4.31 = Client error 5.00-5.31 = Server error. | |
| constexpr bool | is_response () const |
| Category tests: 0.00 = Empty (may be request or response) 0.01-0.31 = Request 2.00-2.31 = Success 4.00-4.31 = Client error 5.00-5.31 = Server error. | |
Public Attributes | |
| u8 | value |
| Raw value. | |