23 lines
372 B
C++
23 lines
372 B
C++
#ifndef WIFI_FUNCTIONS_H
|
|
#define WIFI_FUNCTIONS_H
|
|
|
|
#include <string>
|
|
|
|
|
|
namespace PresenceDetection {
|
|
namespace WiFi {
|
|
|
|
class Functions
|
|
{
|
|
public:
|
|
static bool Ping(const std::string& ipAddress);
|
|
|
|
private:
|
|
static uint16_t ICMPChecksum(uint16_t* addr, unsigned len);
|
|
};
|
|
|
|
} // namespace WiFi
|
|
} // namespace PresenceDetection
|
|
|
|
#endif // WIFI_FUNCTIONS_H
|