@@ -40,64 +40,68 @@ class WiFiClient : public Client {
4040 ~WiFiClient ();
4141
4242 /* *
43- * Establish a connection to a remote server using the specified IP address and port number.
43+ * @brief Establish a connection to a remote server using the specified IP address and port number.
4444 */
4545 virtual int connect (IPAddress ip, uint16_t port);
4646
4747 /* *
48- * Establish a connection to a remote server
49- * using the specified host (domain name or IP address) and port number.
48+ * @brief Establish a connection to a remote server.
49+ *
50+ * @param Uses the specified domain name or IP address `host` and `port` for port number.
5051 */
5152 virtual int connect (const char *host, uint16_t port);
5253
5354 /* *
54- * Writes a single byte of data to the connected client.
55+ * @brief Writes a single byte of data to the connected client.
5556 */
5657 virtual size_t write (uint8_t );
5758
5859 /* *
59- * Writes a buffer of data to the connected client.
60- * Takes a pointer to a buffer `buf` containing the data to be written
60+ * @brief Writes a buffer of data to the connected client.
61+ *
62+ * @param Takes a pointer to a buffer `buf` containing the data to be written
6163 * and the size of the buffer `size` as parameters.
62- * The function writes the data in the buffer to the connected client
64+ *
65+ * @return The function writes the data in the buffer to the connected client
6366 * and returns the number of bytes written.
6467 */
6568 virtual size_t write (const uint8_t *buf, size_t size);
6669
6770 /* *
68- * Checks how many bytes are available for reading from the connected client.
71+ * @brief Checks how many bytes are available for reading from the connected client.
6972 */
7073 virtual int available ();
7174
7275 /* *
73- * Reads a single byte of data from the connected client.
76+ * @brief Reads a single byte of data from the connected client.
7477 */
7578 virtual int read ();
7679
7780 /* *
78- * Reads a specified number of bytes from the connected client into a buffer.
81+ * @brief Reads a specified number of bytes from the connected client into a buffer.
7982 */
8083 virtual int read (uint8_t *buf, size_t size);
8184
8285 /* *
83- * Peeks at the next byte of incoming data without removing it from the internal buffer.
86+ * @brief Peeks at the next byte of incoming data without removing it from the internal buffer.
8487 */
8588 virtual int peek ();
8689
8790 /* *
88- * Clears any buffered outgoing data that has not been sent to the connected client.
91+ * @brief Clears any buffered outgoing data that has not been sent to the connected client.
8992 */
9093 virtual void flush ();
9194
9295 /* *
93- * Closes the connection to the remote server.
94- * Terminates the connection and release any resources associated with it.
96+ * @brief Closes the connection to the remote server
97+ * and releases any resources associated with it.
9598 */
9699 virtual void stop ();
97100
98101 /* *
99- * Checks whether the client is currently connected to a remote server.
100- * Returns a `uint8_t` value indicating the connection status of the client.
102+ * @brief Checks whether the client is currently connected to a remote server.
103+ *
104+ * @return Returns a `uint8_t` value indicating the connection status of the client.
101105 */
102106 virtual uint8_t connected ();
103107
@@ -111,19 +115,19 @@ class WiFiClient : public Client {
111115 };
112116
113117 /* *
114- * Returns the IP address of the remote server to which the client is connected.
118+ * @return Returns the IP address of the remote server to which the client is connected.
115119 */
116120 virtual IPAddress remoteIP ();
117121
118122 /* *
119- * Returns the port number of the remote server for the connetec client.
123+ * @return Returns the port number of the remote server for the connetec client.
120124 */
121125 virtual uint16_t remotePort ();
122126
123127 /* *
124- * Sets the connection timeout value for the client.
125- * It takes an integer `timeout` as a parameter which determines how long the client will wait
126- * for a connection to be established before timing out.
128+ * @brief Sets the connection timeout value for the client.
129+ * @param It takes an integer `timeout` as a parameter which determines how long the
130+ * client will wait for a connection to be established before timing out.
127131 */
128132 void setConnectionTimeout (int timeout) {
129133 _connectionTimeout = timeout;
0 commit comments