Topic: Is there any reference about MQTT struct?
Hi, I really appreciate providing such helpful libraries.
I have already read MQTT user manual but couldn't find what I was looking for.
I'd like to know what does each struct parameter stand for. For example, struct "MqttConnect" has many parameters.
I have less knowledge about MQTT but I could understand what is "MqttConnect.keep_alive_sec".
But I couldn't understand what is "MqttConnect.stat".
Of course I dug into source code and found a hint in "mqtt_packet.h" as below.
typedef enum _MqttMsgStat {
MQTT_MSG_BEGIN = 0, /* must be zero, so memset will setup state */
#ifdef WOLFMQTT_V5
MQTT_MSG_AUTH,
#endif
MQTT_MSG_WAIT,
MQTT_MSG_WRITE,
MQTT_MSG_WRITE_PAYLOAD,
MQTT_MSG_READ,
MQTT_MSG_READ_PAYLOAD,
} MqttMsgStat;
Well... what is "MqttMsgStat"...? I just would like to publish a message to broker but... which one should I select?
Not only this parameter, I couldn't understand "ack.flags", "ack.return_code" and so on.
It might be a basic of MQTT but it would be helpful there is a reference. Do you have any idea or resource?