24 lines
545 B
C++
Executable File
24 lines
545 B
C++
Executable File
#ifndef WIFIOBSERVATION_H
|
|
#define WIFIOBSERVATION_H
|
|
|
|
#include "MACAddress.h"
|
|
#include <vector>
|
|
|
|
/** one observed AP and its signal strength */
|
|
struct WiFiObservationEntry {
|
|
uint64_t ts;
|
|
std::string mac;
|
|
int freq;
|
|
int rssi;
|
|
WiFiObservationEntry() {;}
|
|
WiFiObservationEntry(const uint64_t ts, const std::string& mac, const int freq, const int rssi) : ts(ts), mac(mac), freq(freq), rssi(rssi) {;}
|
|
};
|
|
|
|
/** all APs observed during one scan */
|
|
struct WiFiObservation {
|
|
|
|
std::vector<WiFiObservationEntry> entries;
|
|
};
|
|
|
|
#endif // WIFIOBSERVATION_H
|