Lines Matching full:coap

11  * @brief CoAP implementation for Zephyr.
18 * @brief COAP library
19 * @defgroup coap COAP Library
38 * @brief Set of CoAP packet options we are aware of.
97 * @brief CoAP packets may be of one of these types.
130 * Utility macro to create a CoAP response code.
210 * @brief Set of Content-Format option values for CoAP.
227 * @brief Set of No-Response option values for CoAP.
275 * @brief Description of CoAP resource.
277 * CoAP servers often want to register resources, so that clients can act on
281 /** Which function to be called for each CoAP method */
310 * @brief Representation of a CoAP Packet.
314 uint16_t offset; /**< CoAP lib maintains offset while adding data */
315 uint16_t max_len; /**< Max CoAP packet data length */
316 uint8_t hdr_len; /**< CoAP header length */
318 uint16_t delta; /**< Used for delta calculation in CoAP packet */
329 * @brief Representation of a CoAP option.
355 * @brief CoAP transmission parameters.
358 /** Initial ACK timeout. Value is used as a base value to retry pending CoAP packets. */
362 * Set CoAP ack random factor. A value of 150 means a factor of 1.5. A value of 0 defaults
367 /** Set CoAP retry backoff factor. A value of 200 means a factor of 2.0. */
382 uint16_t len; /**< Length of the CoAP packet */
392 /** CoAP reply callback */
407 * @brief Returns the version present in a CoAP packet.
409 * @param cpkt CoAP packet representation
411 * @return the CoAP version in packet
416 * @brief Returns the type of the CoAP packet.
418 * @param cpkt CoAP packet representation
425 * @brief Returns the token (if any) in the CoAP packet.
427 * @param cpkt CoAP packet representation
431 * @return Token length in the CoAP packet (0 - COAP_TOKEN_MAX_LEN).
436 * @brief Returns the code of the CoAP packet.
438 * @param cpkt CoAP packet representation
445 * @brief Modifies the code of the CoAP packet.
447 * @param cpkt CoAP packet representation
448 * @param code CoAP code
454 * @brief Returns the message id associated with the CoAP packet.
456 * @param cpkt CoAP packet representation
463 * @brief Returns the data pointer and length of the CoAP packet.
465 * @param cpkt CoAP packet representation
466 * @param len Total length of CoAP payload
475 * @brief Verify if CoAP URI path matches with provided options.
481 * @return true if the CoAP URI path matches,
489 * @brief Parses the CoAP packet in data, validating it and
493 * @param data Data containing a CoAP packet, its @a data pointer is
494 * positioned on the start of the CoAP packet.
501 * @retval -EBADMSG in case of malformed coap packet header.
502 * @retval -EILSEQ in case of malformed coap options.
508 * @brief Parses provided coap path (with/without query) or query and appends
512 * @param path Null-terminated string of coap path, query or both.
519 * @brief Creates a new CoAP Packet from input data.
522 * @param data Data that will contain a CoAP packet information
524 * @param ver CoAP header version
525 * @param type CoAP header type
526 * @param token_len CoAP header token length
527 * @param token CoAP header token
528 * @param code CoAP header code
529 * @param id CoAP header message id
538 * @brief Create a new CoAP Acknowledgment message for given request.
540 * This function works like @ref coap_packet_init, filling CoAP header type,
541 * CoAP header token, and CoAP header message id fields according to
545 * @param req CoAP request packet that is being acknowledged
546 * @param data Data that will contain a CoAP packet information
548 * @param code CoAP header code
556 * @brief Create a new CoAP Reset message for given request.
558 * This function works like @ref coap_packet_init, filling CoAP header type,
559 * and CoAP header message id fields.
562 * @param req CoAP request packet that is being acknowledged
563 * @param data Data that will contain a CoAP packet information
589 * @param cpkt CoAP packet representation
657 * @brief Append payload marker to CoAP packet
666 * @brief Append payload to CoAP packet
669 * @param payload CoAP packet payload
670 * @param payload_len CoAP packet payload len
678 * @brief Check if a CoAP packet is a CoAP request.
768 * NOTE: Only valid CoAP block sizes map correctly.
770 * @param bytes CoAP block size in bytes.
814 * If the CoAP packet is a request then BLOCK1 is appended
828 * If the CoAP packet is a request then an available BLOCK1 option
841 * If the CoAP packet is a request then BLOCK1 is removed
908 * @brief Get the integer representation of a CoAP option.
911 * @param code CoAP option code
920 * CoAP block1 option.
932 * @brief Get values from CoAP block2 option.
1109 * @param params Pointer to the CoAP transmission parameters struct,
1265 * @brief Get currently active CoAP transmission parameters.
1267 * @return CoAP transmission parameters structure.
1272 * @brief Set CoAP transmission parameters.