Skip to content

Instantly share code, notes, and snippets.

@nlharri
Created November 13, 2018 22:30
Show Gist options
  • Save nlharri/7d87d4e258cae6a4529de22102ab4bcd to your computer and use it in GitHub Desktop.
Save nlharri/7d87d4e258cae6a4529de22102ab4bcd to your computer and use it in GitHub Desktop.
WiFiScannerLinux - wifiap.cpp
#include <string>
#include "wifiap.h"
WifiAP::WifiAP(std::string name, int rssi) {
this->name = name;
this->rssi = rssi;
}
std::string WifiAP::getName() {
return this->name;
}
int WifiAP::getRSSI() {
return this->rssi;
}
void WifiAP::setRSSI(int rssi) {
this->rssi = rssi;
}
void WifiAP::setRatio(double ratio) {
this->ratio = ratio;
}
double WifiAP::getRatio() {
return this->ratio;
}
bool WifiAP::operator<(const WifiAP& ap) {
return this->rssi < ap.rssi;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment