Skip to content
Was this article helpful?

MQTT_PROTOCOL_T


Models the MQTT message types

This topic lists the expressions that are provided by this class.

AUTH

Operates on MQTT AUTH message

Returns: mqtt_auth_t


COMMAND

Return the MQTT command type

Returns: mqtt_command_e


CONNACK

Operates on MQTT CONNACK message

Returns: mqtt_connack_t


CONNECT

Operates on MQTT CONNECT message

Returns: mqtt_connect_t


DISCONNECT

Operates on MQTT Disconnect message

Returns: mqtt_disconnect_t


FROM_CLIENT

Returns true if the MQTT message is received from Client

Returns: bool_at


FROM_SERVER

Returns true if the MQTT message is received from Server

Returns: bool_at


HEADER

Return the MQTT fixed header

Returns: mqtt_header_t


MESSAGE_LENGTH

Return the length of the MQTT message

Returns: num_at


NEW_CONNACK (uint errcode)

Creates a new MQTT CONNACK message based on error code. The admin must make sure that the error code being configured is valid as per the protocol version.

Parameters:

errcode- Error Code

Returns: text_t


PUBACK

Operates on MQTT PUBACK message.

Returns: mqtt_puback_t


PUBCOMP

Operates on MQTT PUBCOMP message.

Returns: mqtt_pubcomp_t


PUBLISH

Operates on MQTT PUBLISH message.

Returns: mqtt_publish_t


PUBREC

Operates on MQTT PUBREC message.

Returns: mqtt_pubrec_t


PUBREL

Operates on MQTT PUBREL message.

Returns: mqtt_pubrel_t


SUBACK

Operates on MQTT SUBACK message.

Returns: mqtt_suback_t


SUBSCRIBE

Operates on MQTT SUBSCRIBE message.

Returns: mqtt_subscribe_t


UNSUBACK

Operates on MQTT UNSUBACK message

Returns: mqtt_unsuback_t


UNSUBSCRIBE

Operates on MQTT UNSUBSCRIBE message

Returns: mqtt_unsubscribe_t


VERSION

Return the MQTT protocol version

Returns: num_at


Was this article helpful?