rref requestable via mqtt

This commit is contained in:
2024-01-24 22:08:06 +01:00
parent 0ac6418870
commit 8853b3306a
7 changed files with 178 additions and 43 deletions

3
mqtt.h
View File

@@ -1,3 +1,4 @@
struct mosquitto * connectMqtt(char *user, char *pass);
struct mosquitto * connectMqtt(char *user, char *pass, void (*messageCallback)(struct mosquitto *, void *, const struct mosquitto_message *));
int sendMqtt(struct mosquitto *mqtt, char *topic, char *payload, int payloadLength);
int recvMqtt(struct mosquitto *mqtt, char *topic);
void disconnectMqtt(struct mosquitto *mqtt);