MQTT-Gateway/mqtt.h

4 lines
323 B
C
Raw Normal View History

2024-01-24 22:08:06 +01:00
struct mosquitto * connectMqtt(char *user, char *pass, void (*messageCallback)(struct mosquitto *, void *, const struct mosquitto_message *));
2024-01-22 22:00:14 +01:00
int sendMqtt(struct mosquitto *mqtt, char *topic, char *payload, int payloadLength);
2024-01-24 22:08:06 +01:00
int recvMqtt(struct mosquitto *mqtt, char *topic);
2024-01-22 22:00:14 +01:00
void disconnectMqtt(struct mosquitto *mqtt);