publish lock state to mqtt
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <PubSubClient.h>
|
||||
#include <WiFiClient.h>
|
||||
#include "NukiConstants.h"
|
||||
|
||||
class Network
|
||||
{
|
||||
@@ -11,6 +12,8 @@ public:
|
||||
void initialize();
|
||||
void update();
|
||||
|
||||
void publishKeyTurnerState(const KeyTurnerState& state);
|
||||
|
||||
private:
|
||||
static void onMqttDataReceivedCallback(char* topic, byte* payload, unsigned int length);
|
||||
void onMqttDataReceived(char*& topic, byte*& payload, unsigned int& length);
|
||||
@@ -20,6 +23,5 @@ private:
|
||||
PubSubClient _mqttClient;
|
||||
WiFiClient _wifiClient;
|
||||
|
||||
uint32_t _count = 0;
|
||||
unsigned long _publishTs = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user