libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp
static bool sta_config_equal(const station_config& lhs, const station_config& rhs) {
    if(strcmp(reinterpret_cast<const char*>(lhs.ssid), reinterpret_cast<const char*>(rhs.ssid)) != 0) {
        return false;
    }

    if(strcmp(reinterpret_cast<const char*>(lhs.password), reinterpret_cast<const char*>(rhs.password)) != 0) {
        return false;
    }

    if(lhs.bssid_set != rhs.bssid_set) {
        return false;
    }

    if(lhs.bssid_set) {
        if(memcmp(lhs.bssid, rhs.bssid, 6) != 0) {
            return false;
        }
    }

    return true;
}
/**
 * compare two STA configurations
 * @param lhs station_config
 * @param rhs station_config
 * @return equal
 */
compare two STA configurations
@param lhs station_config
@param rhs station_config
@return equal
compare two STA configurations @param lhs station_config @param rhs station_config @return equal
static bool sta_config_equal(const station_config& lhs, const station_config& rhs) {
    if(strcmp(reinterpret_cast<const char*>(lhs.ssid), reinterpret_cast<const char*>(rhs.ssid)) != 0) {
        return false;
    }
    if(strcmp(reinterpret_cast<const char*>(lhs.password), reinterpret_cast<const char*>(rhs.password)) != 0) {
        return false;
    }
    if(lhs.bssid_set != rhs.bssid_set) {
        return false;
    }
    if(lhs.bssid_set) {
        if(memcmp(lhs.bssid, rhs.bssid, 6) != 0) {
            return false;
        }
    }
    return true;
}
static bool sta_config_equal ( const station_config & lhs , const station_config & rhs ) { if ( strcmp ( reinterpret_cast < const char * > ( lhs . ssid ) , reinterpret_cast < const char * > ( rhs . ssid ) ) != 0 ) { return false ; } if ( strcmp ( reinterpret_cast < const char * > ( lhs . password ) , reinterpret_cast < const char * > ( rhs . password ) ) != 0 ) { return false ; } if ( lhs . bssid_set != rhs . bssid_set ) { return false ; } if ( lhs . bssid_set ) { if ( memcmp ( lhs . bssid , rhs . bssid , 6 ) != 0 ) { return false ; } } return true ; }
compare two STA configurations
 @param lhs station_config
 @param rhs station_config
 @return equal
compare two STA configurations @param lhs station_config @param rhs station_config @return equal