#include <ProsecCoAP.h>
◆ addOption()
| void CoapPacket::addOption |
( |
uint8_t | number, |
|
|
uint8_t | length, |
|
|
uint8_t * | value ) |
Add an option to the packet.
The option is stored and will be later parsed when sending the packet.
- Parameters
-
| number | The option number. |
| length | The length of the option value. |
| value | The pointer to the option value. |
◆ getObserveValue()
Fetch the observe value (either 1 or 0).
- Returns
- true if the observe option is present and value retrieved successfully, false otherwise.
◆ code
| uint8_t CoapPacket::code = 0 |
◆ messageId
| uint16_t CoapPacket::messageId = 0 |
◆ optionCount
| uint8_t CoapPacket::optionCount = 0 |
◆ options
◆ payload
| const uint8_t* CoapPacket::payload = NULL |
◆ payloadLength
| size_t CoapPacket::payloadLength = 0 |
◆ token
| const uint8_t* CoapPacket::token = NULL |
◆ tokenLength
| uint8_t CoapPacket::tokenLength = 0 |
◆ type
| uint8_t CoapPacket::type = 0 |
The documentation for this class was generated from the following files: