rework wifi Interface around this new concept and patch up some old uses of notifications to follow new paradigm compile out old UI code because notification refactor broke it.
21 lines
623 B
C++
21 lines
623 B
C++
#include "wifiHandlerSim.hpp"
|
|
|
|
wifiHandlerSim::wifiHandlerSim() {}
|
|
|
|
void wifiHandlerSim::begin() {}
|
|
|
|
void wifiHandlerSim::connect(std::string ssid, std::string password) {
|
|
status.ssid = ssid;
|
|
mStatusUpdate->notify(wifiStatus(status));
|
|
}
|
|
|
|
static const WifiInfo wifis[] = {
|
|
WifiInfo("High Signal Wifi", -49), WifiInfo("Mid Signal Wifi", -55),
|
|
WifiInfo("Low Signal Wifi", -65), WifiInfo("No Signal Wifi", -90)};
|
|
|
|
void wifiHandlerSim::scan() {
|
|
std::vector<WifiInfo> info = std::vector(std::begin(wifis), std::end(wifis));
|
|
mScanNotification->notify(info);
|
|
}
|
|
|
|
bool wifiHandlerSim::isAvailable() { return false; }
|