Ethernet MQTT client (experimental)
This commit is contained in:
1 parent
10616ffc52
commit
73ee2df3d4
6 files changed
+174
-4
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#ifndef _MQTTCLIENT_H
|
||||
#define _MQTTCLIENT_H
|
||||
|
||||
#include "globals.h"
|
||||
#include "rcommand.h"
|
||||
#include <ETH.h>
|
||||
#include <PubSubClient.h>
|
||||
|
||||
#define MQTT_NAME "paxcounter"
|
||||
#define MQTT_INTOPIC "rcommand"
|
||||
#define MQTT_PORT 1883
|
||||
|
||||
extern TaskHandle_t mqttTask;
|
||||
|
||||
void mqtt_enqueuedata(MessageBuffer_t *message);
|
||||
void mqtt_queuereset(void);
|
||||
void mqtt_client_task(void *param);
|
||||
void mqtt_connect(IPAddress mqtt_host, uint16_t mqtt_port);
|
||||
void mqtt_callback(char *topic, byte *payload, unsigned int length);
|
||||
void WiFiEvent(WiFiEvent_t event);
|
||||
esp_err_t mqtt_init(void);
|
||||
|
||||
#endif // _MQTTCLIENT_H
|
||||
@@ -2,6 +2,7 @@
|
||||
#define _SENDDATA_H
|
||||
|
||||
#include "spislave.h"
|
||||
#include "mqttclient.h"
|
||||
#include "cyclic.h"
|
||||
#include "sensor.h"
|
||||
#include "lorawan.h"
|
||||
|
||||
Reference in new issue
Block a user