MQTT client (experimental)
This commit is contained in:
1 parent
e720728ff5
commit
c5c9e933d4
2 files changed
+55
-33
No files matched your search
@@ -6,16 +6,18 @@
|
||||
#include <ETH.h>
|
||||
#include <PubSubClient.h>
|
||||
|
||||
#define MQTT_NAME "paxcounter"
|
||||
#define MQTT_INTOPIC "rcommand"
|
||||
#define MQTT_CLIENT "paxcounter"
|
||||
#define MQTT_INTOPIC "pax_IN"
|
||||
#define MQTT_OUTTOPIC "pax_OUT"
|
||||
#define MQTT_PORT 1883
|
||||
#define MQTT_SERVER "broker.hivemq.com"
|
||||
|
||||
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);
|
||||
int 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);
|
||||
|
||||
Reference in new issue
Block a user