File tree Expand file tree Collapse file tree 5 files changed +75
-10
lines changed Expand file tree Collapse file tree 5 files changed +75
-10
lines changed Original file line number Diff line number Diff line change @@ -103,13 +103,26 @@ class Wippersnapper_AIRLIFT : public Wippersnapper {
103
103
_pass = WS._config .network .pass ;
104
104
}
105
105
106
- // Define a structure to hold network information
106
+ /* *********************************************************/
107
+ /* !
108
+ @brief a structure to hold network information
109
+ */
110
+ /* *********************************************************/
107
111
struct WiFiNetwork {
108
112
char ssid[33 ]; // Maximum SSID length is 32 characters + null terminator
109
113
int rssi;
110
114
};
111
115
112
- // Comparison function to sort by RSSI in descending order
116
+ /* ******************************************************************/
117
+ /* !
118
+ @brief Comparison function to sort by RSSI in descending order
119
+ @param a
120
+ WiFiNetwork object
121
+ @param b
122
+ WiFiNetwork object
123
+ @returns True if a.rssi > b.rssi
124
+ */
125
+ /* ******************************************************************/
113
126
bool static compareByRSSI (const WiFiNetwork &a, const WiFiNetwork &b) {
114
127
return a.rssi > b.rssi ;
115
128
}
Original file line number Diff line number Diff line change @@ -92,13 +92,26 @@ class Wippersnapper_ESP32 : public Wippersnapper {
92
92
_pass = WS._config .network .pass ;
93
93
}
94
94
95
- // Define a structure to hold network information
95
+ /* *********************************************************/
96
+ /* !
97
+ @brief a structure to hold network information
98
+ */
99
+ /* *********************************************************/
96
100
struct WiFiNetwork {
97
101
char ssid[33 ]; // Maximum SSID length is 32 characters + null terminator
98
102
int rssi;
99
103
};
100
104
101
- // Comparison function to sort by RSSI in descending order
105
+ /* ******************************************************************/
106
+ /* !
107
+ @brief Comparison function to sort by RSSI in descending order
108
+ @param a
109
+ WiFiNetwork object
110
+ @param b
111
+ WiFiNetwork object
112
+ @returns True if a.rssi > b.rssi
113
+ */
114
+ /* ******************************************************************/
102
115
bool static compareByRSSI (const WiFiNetwork &a, const WiFiNetwork &b) {
103
116
return a.rssi > b.rssi ;
104
117
}
Original file line number Diff line number Diff line change @@ -115,13 +115,26 @@ class Wippersnapper_ESP8266 : public Wippersnapper {
115
115
_pass = WS._config .network .pass ;
116
116
}
117
117
118
- // Define a structure to hold network information
118
+ /* *********************************************************/
119
+ /* !
120
+ @brief a structure to hold network information
121
+ */
122
+ /* *********************************************************/
119
123
struct WiFiNetwork {
120
124
char ssid[33 ]; // Maximum SSID length is 32 characters + null terminator
121
125
int rssi;
122
126
};
123
127
124
- // Comparison function to sort by RSSI in descending order
128
+ /* ******************************************************************/
129
+ /* !
130
+ @brief Comparison function to sort by RSSI in descending order
131
+ @param a
132
+ WiFiNetwork object
133
+ @param b
134
+ WiFiNetwork object
135
+ @returns True if a.rssi > b.rssi
136
+ */
137
+ /* ******************************************************************/
125
138
bool static compareByRSSI (const WiFiNetwork &a, const WiFiNetwork &b) {
126
139
return a.rssi > b.rssi ;
127
140
}
Original file line number Diff line number Diff line change @@ -111,13 +111,26 @@ class Wippersnapper_WIFININA : public Wippersnapper {
111
111
strlcpy (WS._config .network .pass , _pass, sizeof (WS._config .network .pass ));
112
112
}
113
113
114
- // Define a structure to hold network information
114
+ /* *********************************************************/
115
+ /* !
116
+ @brief a structure to hold network information
117
+ */
118
+ /* *********************************************************/
115
119
struct WiFiNetwork {
116
120
char ssid[33 ]; // Maximum SSID length is 32 characters + null terminator
117
121
int rssi;
118
122
};
119
123
120
- // Comparison function to sort by RSSI in descending order
124
+ /* ******************************************************************/
125
+ /* !
126
+ @brief Comparison function to sort by RSSI in descending order
127
+ @param a
128
+ WiFiNetwork object
129
+ @param b
130
+ WiFiNetwork object
131
+ @returns True if a.rssi > b.rssi
132
+ */
133
+ /* ******************************************************************/
121
134
bool static compareByRSSI (const WiFiNetwork &a, const WiFiNetwork &b) {
122
135
return a.rssi > b.rssi ;
123
136
}
Original file line number Diff line number Diff line change @@ -94,13 +94,26 @@ class ws_networking_pico : public Wippersnapper {
94
94
_pass = WS._config .network .pass ;
95
95
}
96
96
97
- // Define a structure to hold network information
97
+ /* *********************************************************/
98
+ /* !
99
+ @brief a structure to hold network information
100
+ */
101
+ /* *********************************************************/
98
102
struct WiFiNetwork {
99
103
char ssid[33 ]; // Maximum SSID length is 32 characters + null terminator
100
104
int rssi;
101
105
};
102
106
103
- // Comparison function to sort by RSSI in descending order
107
+ /* ******************************************************************/
108
+ /* !
109
+ @brief Comparison function to sort by RSSI in descending order
110
+ @param a
111
+ WiFiNetwork object
112
+ @param b
113
+ WiFiNetwork object
114
+ @returns True if a.rssi > b.rssi
115
+ */
116
+ /* ******************************************************************/
104
117
bool static compareByRSSI (const WiFiNetwork &a, const WiFiNetwork &b) {
105
118
return a.rssi > b.rssi ;
106
119
}
You can’t perform that action at this time.
0 commit comments