|
Nol.A SDK Library
25.8.1
For IoT System Software Development
|
CoAP 서버로 요청을 보내기 위한 클래스 More...
#include <CoAPRequest.hpp>
Classes | |
| struct | ResponseInfo_t |
| CoAP response 정보 More... | |
Public Member Functions | |
| error_t | open (Method_t method, const char *uri, const char *token, IPv6Interface *interface) |
| CoAP request의 세부 사항을 지정합니다. More... | |
| error_t | open (Method_t method, const char *uri) |
| error_t | open (Method_t method, const char *uri, const char *token) |
| error_t | open (Method_t method, const char *uri, IPv6Interface *interface) |
| void | onResponse (void(*handler)(CoAPRequest &req, const ResponseInfo_t *response)) |
| CoAP request에 대한 response 콜백함수를 지정합니다. More... | |
| error_t | send (Media_t media=MEDIA_TEXT_PLAIN, const uint8_t *payload=NULL, uint16_t payloadLength=0) |
| CoAP request를 payload와 함께 전송합니다. More... | |
| error_t | send (Media_t media, const char *payload, uint16_t payloadLength) |
CoAP 서버로 요청을 보내기 위한 클래스
| void CoAPRequest::onResponse | ( | void(*)(CoAPRequest &req, const ResponseInfo_t *response) | handler | ) |
| error_t CoAPRequest::open | ( | Method_t | method, |
| const char * | uri, | ||
| const char * | token, | ||
| IPv6Interface * | interface | ||
| ) |
| error_t CoAPRequest::send | ( | Media_t | media = MEDIA_TEXT_PLAIN, |
| const uint8_t * | payload = NULL, |
||
| uint16_t | payloadLength = 0 |
||
| ) |
CoAP request를 payload와 함께 전송합니다.
| media | payload의 media type. Payload가 생략될 때는 무시됩니다. |
| payload | 전송할 payload. Payload를 생략할 때는 NULL로 지정합니다. |
| payloadLength | 전송할 payload의 길이 |
파라미터들을 지정하지 않으면 payload 없이 전송합니다.
| unsigned int CoAPRequest::m |
1 if more blocks follow, 0 otherwise
| unsigned int CoAPRequest::num |
block number
| unsigned int CoAPRequest::szx |
block size