add infrastructure for mqtt subscriptions

This commit is contained in:
technyon
2022-03-23 20:24:13 +01:00
parent 7cdf5c0f31
commit 8d31f4e9aa
3 changed files with 37 additions and 14 deletions

View File

@@ -12,6 +12,9 @@ public:
void update();
private:
static void onMqttDataReceivedCallback(char* topic, byte* payload, unsigned int length);
void onMqttDataReceived(char*& topic, byte*& payload, unsigned int& length);
bool reconnect();
PubSubClient _mqttClient;