@@ -86,7 +86,7 @@ class CWifi {
8686 *
8787 * @param `ssid` The SSID (network name) of the Access Point.
8888 *
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.
9090 */
9191 uint8_t beginAP (const char *ssid);
9292 uint8_t beginAP (const char *ssid);
@@ -100,7 +100,7 @@ class CWifi {
100100 * @param `ssid` The SSID (name) of the Wi-Fi Access Point.
101101 * @param `channel` The channel on which the Access Point will operate.
102102 *
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.
104104 */
105105 uint8_t beginAP (const char *ssid, uint8_t channel);
106106
@@ -114,7 +114,7 @@ class CWifi {
114114 * @param `passphrase` The passphrase for securing the Access Point. If empty, the
115115 * network will be open (no password).
116116 *
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.
118118 */
119119 uint8_t beginAP (const char *ssid, const char * passphrase);
120120
@@ -128,70 +128,82 @@ class CWifi {
128128 * @param `passphrase` The passphrase for securing the Access Point. If empty, the network will be open.
129129 * @param `channel` The Wi-Fi channel on which the Access Point will operate (1-14, depending on region).
130130 *
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.
132132 */
133133 uint8_t beginAP (const char *ssid, const char * passphrase, uint8_t channel);
134134
135135
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+ */
140141 void config (IPAddress local_ip);
141142
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+ */
147152 void config (IPAddress local_ip, IPAddress dns_server);
148153
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+ */
155162 void config (IPAddress local_ip, IPAddress dns_server, IPAddress gateway);
156163
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+ */
164173 void config (IPAddress local_ip, IPAddress dns_server, IPAddress gateway, IPAddress subnet);
165174
166- /* Change DNS IP configuration
175+ /* *
176+ * @brief Sets the primary DNS server for the Wi-Fi connection.
167177 *
168- * param dns_server1: IP configuration for DNS server 1
178+ * @ param ` dns_server1` The primary DNS server to use for domain name resolution.
169179 */
170180 void setDNS (IPAddress dns_server1);
171181
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.
176184 *
185+ * @param `dns_server1` sets the IP configuration for DNS server 1
186+ * @param `dns_server2` sets the IP configuration for DNS server 2
177187 */
178188 void setDNS (IPAddress dns_server1, IPAddress dns_server2);
179189
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.
184192 *
193+ * @param `name` sets the hostname.
185194 */
186195 void setHostname (const char * name);
187196
188- /*
189- * Disconnect from the network
197+ /* *
198+ * @brief Disconnects from the current Wi-Fi network.
190199 *
191- * return: one value of wl_status_t enum
200+ * @ return `1` if the disconnection was successful, `0` otherwise.
192201 */
193202 int disconnect (void );
194203
204+ /* *
205+ * @brief Resets and disables the Wi-Fi module.
206+ */
195207 void end (void );
196208
197209 /*
0 commit comments