Documentation
Includes
log_seq.h
#include "log_seq.h"
Macros
Marco __LOG_SEQ_MQTT_H
#define __LOG_SEQ_MQTT_H
Marco LOGSEQ_OBJ
#define LOGSEQ_OBJ "mqtt"
Functions
Vars
Consts
Types
Typedefs
Typedef MQTT_LOG_SEQ_E;
typedef enum {
// generic
LOGSEQ_MQTT_TIME = 0, // type:string, value:system time, location:NULL
LOGSEQ_MQTT_RSSI = 9, // type:string, value:RSSI signal strength, location:__mqtt_log_seq_err
// DNS
LOGSEQ_MQTT_DNS_RESV = 10, // type:error code, value:DNS parse, location:__mq_ctrl_task
// connect
LOGSEQ_MQTT_SOCK_CONN = 20, // type:error code, value:soket connect, location:__mq_ctrl_task
LOGSEQ_MQTT_CONN = 21, // type:system error code, value:mqtt connect, location:__mq_ctrl_task
LOGSEQ_MQTT_CONN_ACK = 22, // type:system error code, value:mqtt conect acknowleage, location:mqtt_connect
// subscirbe
LOGSEQ_MQTT_SUB = 30, // type:system error code, value:mqtt subscription, location:__mq_ctrl_task
LOGSEQ_MQTT_SUB_ACK = 31, // type:system error code, value:mqtt subscription acknowleage, location:mqtt_subscribe
// publish
LOGSEQ_MQTT_PUB = 40, // type:system error code, value:mqtt publish, location:mqtt_publish_async
LOGSEQ_MQTT_PUB_ACK = 41, // type:system error code, value:mqtt publish acknowleage, location:mqtt_publish
LOGSEQ_MQTT_PUB_ACK_CLOSE = 42, // type:string, value:mqtt failed to publish acknowleage 3 times then closed, location:LOGSEQ_MQTT_PUB_ACK_CLOSE
// process logic
LOGSEQ_MQTT_RECV = 50, // type:system error code, value:receive mqtt, location:__mq_ctrl_task
LOGSEQ_MQTT_LOGIC_PROC = 51, // type:error code, value:mqtt logic process, location:__mq_ctrl_task
LOGSEQ_MQTT_CONN_RECV = 52, // type:error code, value:mqtt connect receive, location:__mq_ctrl_task
// ping
LOGSEQ_MQTT_PING = 60, // type:system error code, value:mqtt ping failed, location:__alive_tm_msg_cb
LOGSEQ_MQTT_PING_TIMEOUT = 61, // type:string, value:time of recorde,location:__resp_tm_cb
}MQTT_LOG_SEQ_E;