updates
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <PubSubClient.h>
|
||||
|
||||
|
||||
class MqttManager
|
||||
{
|
||||
public:
|
||||
|
||||
void begin();
|
||||
void loop();
|
||||
|
||||
bool connected();
|
||||
|
||||
private:
|
||||
|
||||
void reconnect();
|
||||
void callback(
|
||||
char* topic,
|
||||
byte* payload,
|
||||
unsigned int length
|
||||
);
|
||||
|
||||
bool _connected = false;
|
||||
};
|
||||
Reference in New Issue
Block a user