mqtt client (experimental)
This commit is contained in:
1 parent
9c0b504841
commit
05e5d31a53
8 files changed
+39
-29
No files matched your search
@@ -5,6 +5,7 @@
|
||||
#include "senddata.h"
|
||||
#include "rcommand.h"
|
||||
#include "spislave.h"
|
||||
#include "mqttclient.h"
|
||||
#include "bmesensor.h"
|
||||
#include "display.h"
|
||||
#include "sds011read.h"
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
#include <ETH.h>
|
||||
#include <PubSubClient.h>
|
||||
|
||||
#define MQTT_CLIENT "paxcounter"
|
||||
#define MQTT_INTOPIC "pax_IN"
|
||||
#define MQTT_OUTTOPIC "pax_OUT"
|
||||
#define MQTT_INTOPIC "paxcounter_in/"
|
||||
#define MQTT_OUTTOPIC "paxcounter_out/"
|
||||
#define MQTT_PORT 1883
|
||||
#define MQTT_SERVER "broker.hivemq.com"
|
||||
|
||||
extern TaskHandle_t mqttTask;
|
||||
extern PubSubClient mqttClient;
|
||||
|
||||
void mqtt_enqueuedata(MessageBuffer_t *message);
|
||||
void mqtt_queuereset(void);
|
||||
|
||||
@@ -38,5 +38,6 @@
|
||||
|
||||
bool sdcard_init(void);
|
||||
void sdcardWriteData(uint16_t, uint16_t);
|
||||
static void createFile(void);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user