replace PubSubClient with arduino mqtt lib

This commit is contained in:
technyon
2023-01-16 20:41:08 +01:00
parent fd852ac400
commit 6127fc331e
78 changed files with 3042 additions and 4096 deletions

View File

@@ -43,14 +43,14 @@ public:
void publishPresenceDetection(char* csv);
PubSubClient* mqttClient();
MqttClient* mqttClient();
bool isMqttConnected();
const NetworkDeviceType networkDeviceType();
private:
static void onMqttDataReceivedCallback(char* topic, byte* payload, unsigned int length);
void onMqttDataReceived(char*& topic, byte*& payload, unsigned int& length);
static void onMqttDataReceivedCallback(int);
void onMqttDataReceived(int messageSize);
void setupDevice();
bool reconnect();