use -1 to disable presence detection

This commit is contained in:
technyon
2022-04-05 23:03:12 +02:00
parent 2b68a51a23
commit 28687d2b96
5 changed files with 28 additions and 12 deletions

View File

@@ -16,7 +16,7 @@ struct PdDevice
class PresenceDetection : public BLEScannerSubscriber
{
public:
PresenceDetection(BleScanner* bleScanner, Network* network);
PresenceDetection(Preferences* preferences, BleScanner* bleScanner, Network* network);
virtual ~PresenceDetection();
void initialize();
@@ -27,12 +27,11 @@ public:
private:
void buildCsv(const PdDevice& device);
Preferences* _preferences;
BleScanner* _bleScanner;
Network* _network;
char* _csv = {0};
std::map<long long, PdDevice> _devices;
uint _timeout = 20000;
int _timeout = 20000;
int _csvIndex = 0;
};