mirror of https://github.com/jeelabs/esp-link.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
485 B
20 lines
485 B
#ifndef MODULES_MQTT_CMD_H_
|
|
#define MODULES_MQTT_CMD_H_
|
|
|
|
#include "cmd.h"
|
|
|
|
typedef struct {
|
|
uint32_t connectedCb;
|
|
uint32_t disconnectedCb;
|
|
uint32_t publishedCb;
|
|
uint32_t dataCb;
|
|
} MqttCmdCb;
|
|
|
|
uint32_t MQTTCMD_Connect(CmdPacket *cmd);
|
|
uint32_t MQTTCMD_Disconnect(CmdPacket *cmd);
|
|
uint32_t MQTTCMD_Setup(CmdPacket *cmd);
|
|
uint32_t MQTTCMD_Publish(CmdPacket *cmd);
|
|
uint32_t MQTTCMD_Subscribe(CmdPacket *cmd);
|
|
uint32_t MQTTCMD_Lwt(CmdPacket *cmd);
|
|
|
|
#endif /* MODULES_MQTT_CMD_H_ */
|
|
|