inject network into nuki instance

This commit is contained in:
technyon
2022-03-25 20:08:24 +01:00
parent 2b668f08fa
commit fb5dcfaac6
3 changed files with 16 additions and 10 deletions

6
Nuki.h
View File

@@ -2,19 +2,21 @@
#include "NukiBle.h"
#include "NukiConstants.h"
#include "Network.h"
class Nuki
{
public:
Nuki(const std::string& name, uint32_t id);
Nuki(const std::string& name, uint32_t id, Network* network);
void initialize();
void update();
private:
NukiBle _nukiBle;
bool _paired = false;
Network* _network;
KeyTurnerState _keyTurnerState;
bool _paired = false;
};