Lines Matching +full:0 +full:x01 +full:- +full:negative
4 * SPDX-License-Identifier: Apache-2.0
9 * @brief MQTT-SN Client Implementation
12 * MQTT-SN Client's Application interface is defined in this header.
15 * @defgroup mqtt_sn_socket MQTT-SN Client library
17 * @version 0.1.0
41 * Quality of Service. QoS 0-2 work the same as basic MQTT, QoS -1 is an MQTT-SN addition.
42 * QOS -1 is not supported yet.
45 MQTT_SN_QOS_0, /**< QOS 0 */
48 MQTT_SN_QOS_M1 /**< QOS -1 */
52 * MQTT-SN topic types.
57 * It allows usage of any valid UTF-8 string as a topic name.
61 * Pre-defined topic.
62 * It allows usage of a two-byte identifier representing a topic name for
69 * It allows usage of a two-byte string as a topic name.
75 * MQTT-SN return codes.
78 MQTT_SN_CODE_ACCEPTED = 0x00, /**< Accepted */
79 MQTT_SN_CODE_REJECTED_CONGESTION = 0x01, /**< Rejected: congestion */
80 MQTT_SN_CODE_REJECTED_TOPIC_ID = 0x02, /**< Rejected: Invalid Topic ID */
81 MQTT_SN_CODE_REJECTED_NOTSUP = 0x03, /**< Rejected: Not Supported */
99 #define MQTT_SN_DATA_STRING_LITERAL(literal) ((struct mqtt_sn_data){literal, sizeof(literal) - 1})
106 * struct mqtt_sn_data data = MQTT_SN_DATA_BYTES(0x13, 0x37);
142 * MQTT-SN event structure to be handled by the event callback.
164 * @brief Structure to describe an MQTT-SN transport.
166 * MQTT-SN does not require transports to be reliable or to hold a connection.
167 * Transports just need to be frame-based, so you can use UDP, ZigBee, or even
193 * @return ENOERR on connection+transmission success, Negative values
216 * Negative values signal errors.
243 * @param[in] gwaddr Pre-initialized gateway address
251 * Structure describing an MQTT-SN client.
254 /** 1-23 character unique client ID */
300 /** Current state of the MQTT-SN client */
318 /** Delayable work structure for processing MQTT-SN events */
325 * @param client The MQTT-SN client to initialize.
334 * @return 0 or a negative error code (errno.h) indicating reason of failure.
343 * This removes all topics and publishes, and also de-inits the transport.
345 * @param client The MQTT-SN client to deinitialize.
354 * @param client The MQTT-SN client to connect.
358 * @return 0 or a negative error code (errno.h) indicating reason of failure.
363 * @brief Initiate the MQTT-SN GW Search process.
365 * @param client The MQTT-SN client to connect.
368 * @return 0 or a negative error code (errno.h) indicating reason of failure.
375 * @param client The MQTT-SN client to connect.
379 * @return 0 or a negative error code (errno.h) indicating reason of failure.
386 * @param client The MQTT-SN client to disconnect.
388 * @return 0 or a negative error code (errno.h) indicating reason of failure.
395 * @param client The MQTT-SN client to be put to sleep.
398 * @return 0 on success, negative errno code on failure.
405 * @param client The MQTT-SN client that should subscribe.
409 * @return 0 or a negative error code (errno.h) indicating reason of failure.
417 * @param client The MQTT-SN client that should unsubscribe.
421 * @return 0 or a negative error code (errno.h) indicating reason of failure.
431 * @param client The MQTT-SN client that should publish.
437 * @return 0 or a negative error code (errno.h) indicating reason of failure.
446 * If the client's transport struct contains a poll-function, this function is non-blocking.
448 * @param client The MQTT-SN client to check for incoming data.
450 * @return 0 or a negative error code (errno.h) indicating reason of failure.
457 * @param[in] client The MQTT-SN client that uses this topic.
461 * @return 0 on success, -ENOENT if topic ID doesn't exist,
462 * or -EINVAL on invalid arguments.