@@ -86,7 +86,7 @@ class CWifi {
86
86
*
87
87
* @param `ssid` The SSID (network name) of the Access Point.
88
88
*
89
- * @return 1 if the Access Point is successfully started. 0 if the Access Point initialization failed.
89
+ * @return `1` if the Access Point is successfully started. `0` if the Access Point initialization failed.
90
90
*/
91
91
uint8_t beginAP (const char *ssid);
92
92
uint8_t beginAP (const char *ssid);
@@ -100,7 +100,7 @@ class CWifi {
100
100
* @param `ssid` The SSID (name) of the Wi-Fi Access Point.
101
101
* @param `channel` The channel on which the Access Point will operate.
102
102
*
103
- * @return 1 if the Access Point is successfully started. 0 if the Access Point failed to start.
103
+ * @return `1` if the Access Point is successfully started. `0` if the Access Point failed to start.
104
104
*/
105
105
uint8_t beginAP (const char *ssid, uint8_t channel);
106
106
@@ -114,7 +114,7 @@ class CWifi {
114
114
* @param `passphrase` The passphrase for securing the Access Point. If empty, the
115
115
* network will be open (no password).
116
116
*
117
- * @return 1 if the Access Point is successfully started. 0 if the Access Point failed to start.
117
+ * @return `1` if the Access Point is successfully started. `0` if the Access Point failed to start.
118
118
*/
119
119
uint8_t beginAP (const char *ssid, const char * passphrase);
120
120
@@ -128,70 +128,82 @@ class CWifi {
128
128
* @param `passphrase` The passphrase for securing the Access Point. If empty, the network will be open.
129
129
* @param `channel` The Wi-Fi channel on which the Access Point will operate (1-14, depending on region).
130
130
*
131
- * @return WL_AP_LISTENING if the Access Point is successfully started. WL_AP_FAILED if the Access Point failed to start.
131
+ * @return ` WL_AP_LISTENING` if the Access Point is successfully started. ` WL_AP_FAILED` if the Access Point failed to start.
132
132
*/
133
133
uint8_t beginAP (const char *ssid, const char * passphrase, uint8_t channel);
134
134
135
135
136
- /* Change IP configuration settings disabling the DHCP client
137
- *
138
- * param local_ip: Static IP configuration
139
- */
136
+ /* *
137
+ * @brief Change IP configuration settings disabling the DHCP client
138
+ *
139
+ * @param `local_ip` The static IP address to assign to the device.
140
+ */
140
141
void config (IPAddress local_ip);
141
142
142
- /* Change IP configuration settings disabling the DHCP client
143
- *
144
- * param local_ip: Static IP configuration
145
- * param dns_server: IP configuration for DNS server 1
146
- */
143
+ /* *
144
+ * @brief Configures the network settings for the Wi-Fi connection with a specified DNS server.
145
+ *
146
+ * Sets the device's IP configuration using the specified local IP address and DNS server.
147
+ * The gateway and subnet mask are set to default values based on the provided local IP.
148
+ *
149
+ * @param `local_ip` The static IP address to assign to the device.
150
+ * @param `dns_server` The primary DNS server to use for domain name resolution.
151
+ */
147
152
void config (IPAddress local_ip, IPAddress dns_server);
148
153
149
- /* Change IP configuration settings disabling the DHCP client
150
- *
151
- * param local_ip: Static IP configuration
152
- * param dns_server: IP configuration for DNS server 1
153
- * param gateway : Static gateway configuration
154
- */
154
+ /* *
155
+ * @brief Configures the network settings for the Wi-Fi connection with a specified gateway and DNS server.
156
+ *
157
+ *
158
+ * @param `local_ip` The static IP address to assign to the device.
159
+ * @param `dns_server` The primary DNS server to use for domain name resolution.
160
+ * @param `gateway` The Static gateway used for configuration.
161
+ */
155
162
void config (IPAddress local_ip, IPAddress dns_server, IPAddress gateway);
156
163
157
- /* Change IP configuration settings disabling the DHCP client
158
- *
159
- * param local_ip: Static IP configuration
160
- * param dns_server: IP configuration for DNS server 1
161
- * param gateway: Static gateway configuration
162
- * param subnet: Static Subnet mask
163
- */
164
+ /* *
165
+ * @brief Configures the network settings for the Wi-Fi connection with a specified subnet mask, gateway, and DNS server.
166
+ *
167
+ *
168
+ * @param `local_ip` The static IP address to assign to the device.
169
+ * @param `dns_server` The primary DNS server to use for domain name resolution.
170
+ * @param `gateway` The static gateway used for configuration.
171
+ * @param `subnet` The static subnet mask to use for the network.
172
+ */
164
173
void config (IPAddress local_ip, IPAddress dns_server, IPAddress gateway, IPAddress subnet);
165
174
166
- /* Change DNS IP configuration
175
+ /* *
176
+ * @brief Sets the primary DNS server for the Wi-Fi connection.
167
177
*
168
- * param dns_server1: IP configuration for DNS server 1
178
+ * @ param ` dns_server1` The primary DNS server to use for domain name resolution.
169
179
*/
170
180
void setDNS (IPAddress dns_server1);
171
181
172
- /* Change DNS IP configuration
173
- *
174
- * param dns_server1: IP configuration for DNS server 1
175
- * param dns_server2: IP configuration for DNS server 2
182
+ /* *
183
+ * @brief Sets the primary and secondary DNS servers for the Wi-Fi connection.
176
184
*
185
+ * @param `dns_server1` sets the IP configuration for DNS server 1
186
+ * @param `dns_server2` sets the IP configuration for DNS server 2
177
187
*/
178
188
void setDNS (IPAddress dns_server1, IPAddress dns_server2);
179
189
180
-
181
- /* Set the hostname used for DHCP requests
182
- *
183
- * param name: hostname to set
190
+ /* *
191
+ * @brief Sets the hostname for for DHCP requests.
184
192
*
193
+ * @param `name` sets the hostname.
185
194
*/
186
195
void setHostname (const char * name);
187
196
188
- /*
189
- * Disconnect from the network
197
+ /* *
198
+ * @brief Disconnects from the current Wi-Fi network.
190
199
*
191
- * return: one value of wl_status_t enum
200
+ * @ return `1` if the disconnection was successful, `0` otherwise.
192
201
*/
193
202
int disconnect (void );
194
203
204
+ /* *
205
+ * @brief Resets and disables the Wi-Fi module.
206
+ */
195
207
void end (void );
196
208
197
209
/*
0 commit comments