needed interface changes [new options] logger for android wifi-ap-optimization new test-cases
28 lines
514 B
C++
28 lines
514 B
C++
#ifndef WIFIMEASUREMENTS_H
|
|
#define WIFIMEASUREMENTS_H
|
|
|
|
#include <vector>
|
|
|
|
#include "WiFiMeasurement.h"
|
|
|
|
/**
|
|
* group of several wifi measurements
|
|
*/
|
|
struct WiFiMeasurements {
|
|
|
|
/** all contained measurements */
|
|
std::vector<WiFiMeasurement> entries;
|
|
|
|
/** convert to string */
|
|
std::string asString() const {
|
|
std::string res;
|
|
for (const WiFiMeasurement& m : entries) {
|
|
res += m.getAP().getMAC().asString() + ": " + std::to_string(m.getRSSI()) + "\n";
|
|
}
|
|
return res;
|
|
}
|
|
|
|
};
|
|
|
|
#endif // WIFIMEASUREMENTS_H
|