Add Static Devices

This commit is contained in:
2020-05-01 11:39:46 +02:00
parent 157b1ceb51
commit 21dbdd41d9
12 changed files with 400 additions and 327 deletions
+35
View File
@@ -0,0 +1,35 @@
#include "DynamicDevice.h"
#include <StringAlgorithm.h>
namespace PresenceDetection {
namespace Util {
DynamicDevice::DynamicDevice(const std::string& macAddress) :
m_probeCounter(0),
m_macAddress(macAddress)
{
}
std::string DynamicDevice::MacAddress()
{
return m_macAddress;
}
int DynamicDevice::ProbeCounter() const
{
return m_probeCounter;
}
void DynamicDevice::IncrementProbeCounter()
{
++m_probeCounter;
}
void DynamicDevice::ResetProbeCounter()
{
m_probeCounter = 0;
}
} // namespace Util
} // namespace PresenceDetection