Update UniFi Login

This commit is contained in:
2025-03-03 12:59:13 +01:00
parent dc17bbe535
commit 434eb25dda
5 changed files with 125 additions and 13 deletions
+19 -1
View File
@@ -31,6 +31,24 @@ private:
void UpdatePresentDevices();
void SendStateChange(bool present, const std::string& macAddress);
void ClearCookiesFile();
private:
struct PresentDevice
{
PresentDevice(const std::string& macAddress);
PresentDevice(const std::string& macAddress, int lastSeen);
std::string MacAddress;
int LastSeen;
bool operator==(const PresentDevice& other) const;
bool operator!=(const PresentDevice& other) const;
bool operator==(const std::string& other) const;
bool operator!=(const std::string& other) const;
};
private:
Timer::Timer m_deviceTimer;
Timer::Timer m_inventoryTimer;
@@ -52,7 +70,7 @@ private:
std::string m_target;
std::vector<Util::StaticDevice> m_staticDevices;
std::vector<std::string> m_presentDevices;
std::vector<PresentDevice> m_presentDevices;
};
} // namespace WiFi