WifiControl/WifiControlJsonRpc.cpp
// Property: networks - Returns information about available networks
// Return codes:
//  - ERROR_NONE: Success
Returns information about available networks
Return codes:
ERROR_NONE: Success
Returns information about available networks Return codes : ERROR_NONE : Success
uint32_t WifiControl::get_networks(Core::JSON::ArrayType<NetworkInfo>& response) const
    {
        WPASupplicant::Network::Iterator list(_controller->Networks());
        while (list.Next() == true) {
            JsonData::WifiControl::NetworkInfo net;
            WifiControl::FillNetworkInfo(list.Current(), net);
            response.Add(net);
        }
        return Core::ERROR_NONE;
    }
uint32_t WifiControl :: get_networks ( Core :: JSON :: ArrayType < NetworkInfo > & response ) const { WPASupplicant :: Network :: Iterator list ( _controller -> Networks ( ) ) ; while ( list . Next ( ) == true ) { JsonData :: WifiControl :: NetworkInfo net ; WifiControl :: FillNetworkInfo ( list . Current ( ) , net ) ; response . Add ( net ) ; } return Core :: ERROR_NONE ; }
Property: networks - Returns information about available networks
Return codes:
 ERROR_NONE: Success
Property : networks - Returns information about available networks Return codes : ERROR_NONE : Success