Skip to content

Commit

Permalink
Doxygen comments for compareByRSSI
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Nov 14, 2024
1 parent 28296a1 commit 36453d1
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 10 deletions.
17 changes: 15 additions & 2 deletions src/network_interfaces/Wippersnapper_AIRLIFT.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,26 @@ class Wippersnapper_AIRLIFT : public Wippersnapper {
_pass = WS._config.network.pass;
}

// Define a structure to hold network information
/**********************************************************/
/*!
@brief a structure to hold network information
*/
/**********************************************************/
struct WiFiNetwork {
char ssid[33]; // Maximum SSID length is 32 characters + null terminator
int rssi;
};

// Comparison function to sort by RSSI in descending order
/*******************************************************************/
/*!
@brief Comparison function to sort by RSSI in descending order
@param a
WiFiNetwork object
@param b
WiFiNetwork object
@returns True if a.rssi > b.rssi
*/
/*******************************************************************/
bool static compareByRSSI(const WiFiNetwork &a, const WiFiNetwork &b) {
return a.rssi > b.rssi;
}
Expand Down
17 changes: 15 additions & 2 deletions src/network_interfaces/Wippersnapper_ESP32.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,26 @@ class Wippersnapper_ESP32 : public Wippersnapper {
_pass = WS._config.network.pass;
}

// Define a structure to hold network information
/**********************************************************/
/*!
@brief a structure to hold network information
*/
/**********************************************************/
struct WiFiNetwork {
char ssid[33]; // Maximum SSID length is 32 characters + null terminator
int rssi;
};

// Comparison function to sort by RSSI in descending order
/*******************************************************************/
/*!
@brief Comparison function to sort by RSSI in descending order
@param a
WiFiNetwork object
@param b
WiFiNetwork object
@returns True if a.rssi > b.rssi
*/
/*******************************************************************/
bool static compareByRSSI(const WiFiNetwork &a, const WiFiNetwork &b) {
return a.rssi > b.rssi;
}
Expand Down
17 changes: 15 additions & 2 deletions src/network_interfaces/Wippersnapper_ESP8266.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,26 @@ class Wippersnapper_ESP8266 : public Wippersnapper {
_pass = WS._config.network.pass;
}

// Define a structure to hold network information
/**********************************************************/
/*!
@brief a structure to hold network information
*/
/**********************************************************/
struct WiFiNetwork {
char ssid[33]; // Maximum SSID length is 32 characters + null terminator
int rssi;
};

// Comparison function to sort by RSSI in descending order
/*******************************************************************/
/*!
@brief Comparison function to sort by RSSI in descending order
@param a
WiFiNetwork object
@param b
WiFiNetwork object
@returns True if a.rssi > b.rssi
*/
/*******************************************************************/
bool static compareByRSSI(const WiFiNetwork &a, const WiFiNetwork &b) {
return a.rssi > b.rssi;
}
Expand Down
17 changes: 15 additions & 2 deletions src/network_interfaces/Wippersnapper_WIFININA.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,26 @@ class Wippersnapper_WIFININA : public Wippersnapper {
strlcpy(WS._config.network.pass, _pass, sizeof(WS._config.network.pass));
}

// Define a structure to hold network information
/**********************************************************/
/*!
@brief a structure to hold network information
*/
/**********************************************************/
struct WiFiNetwork {
char ssid[33]; // Maximum SSID length is 32 characters + null terminator
int rssi;
};

// Comparison function to sort by RSSI in descending order
/*******************************************************************/
/*!
@brief Comparison function to sort by RSSI in descending order
@param a
WiFiNetwork object
@param b
WiFiNetwork object
@returns True if a.rssi > b.rssi
*/
/*******************************************************************/
bool static compareByRSSI(const WiFiNetwork &a, const WiFiNetwork &b) {
return a.rssi > b.rssi;
}
Expand Down
17 changes: 15 additions & 2 deletions src/network_interfaces/ws_networking_pico.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,26 @@ class ws_networking_pico : public Wippersnapper {
_pass = WS._config.network.pass;
}

// Define a structure to hold network information
/**********************************************************/
/*!
@brief a structure to hold network information
*/
/**********************************************************/
struct WiFiNetwork {
char ssid[33]; // Maximum SSID length is 32 characters + null terminator
int rssi;
};

// Comparison function to sort by RSSI in descending order
/*******************************************************************/
/*!
@brief Comparison function to sort by RSSI in descending order
@param a
WiFiNetwork object
@param b
WiFiNetwork object
@returns True if a.rssi > b.rssi
*/
/*******************************************************************/
bool static compareByRSSI(const WiFiNetwork &a, const WiFiNetwork &b) {
return a.rssi > b.rssi;
}
Expand Down

0 comments on commit 36453d1

Please sign in to comment.