Add Static Devices
This commit is contained in:
+4
-3
@@ -1,7 +1,7 @@
|
||||
#ifndef UNIFI_DEVICE_H
|
||||
#define UNIFI_DEVICE_H
|
||||
|
||||
#include "Util/Device.h"
|
||||
#include "Util/StaticDevice.h"
|
||||
#include <HttpClient.h>
|
||||
#include <Timer.h>
|
||||
#include <mutex>
|
||||
@@ -15,7 +15,7 @@ namespace UniFi {
|
||||
class Device
|
||||
{
|
||||
public:
|
||||
Device(const std::string& hostname, int port, const std::string& username, const std::string& password, const std::string& cookieFile, int timeout, const std::string& inventoryURL, const std::string& target, const std::vector<Util::Device>& devices);
|
||||
Device(const std::string& hostname, int port, const std::string& username, const std::string& password, const std::string& cookieFile, int timeout, const std::string& inventoryURL, const std::string& target, const std::vector<Util::StaticDevice>& staticDevices);
|
||||
~Device();
|
||||
|
||||
void Start();
|
||||
@@ -47,9 +47,10 @@ private:
|
||||
std::vector<std::string> m_devices;
|
||||
|
||||
int m_timeout;
|
||||
int m_checkInterval;
|
||||
std::string m_inventoryURL;
|
||||
std::string m_target;
|
||||
std::vector<Util::Device> m_staticDevices;
|
||||
std::vector<Util::StaticDevice> m_staticDevices;
|
||||
|
||||
std::vector<std::string> m_presentDevices;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user