#pragma once #include #include namespace roro { struct ChannelSighting { int channel; int rssi; }; // How crowded each 2.4 GHz Wi-Fi channel (1..13) is, from the access points a scan saw. A 20 MHz // network spills onto the channels up to two away, less the further it is; a strong signal // counts more than a faint one. Index 0 is unused. std::array channelLoad(const std::vector& sightings); // The least crowded of the non-overlapping channels 1, 6 and 11 (the lowest on a tie). int quietestChannel(const std::array& load); } // namespace roro