@@ -51,35 +51,85 @@ class CWifi {
5151
5252
5353public:
54+ /* *
55+ * @brief Default constructor for the CWifi class.
56+ */
5457 CWifi ();
5558
56- /*
57- * Get firmware version
59+ /* *
60+ * @brief Get firmware version
5861 */
5962 static const char * firmwareVersion ();
6063
61-
62- /*
63- * Start WiFi connection for OPEN networks
64- * param ssid: Pointer to the SSID string.
64+ /* *
65+ * @brief Start WiFi connection for OPEN networks.
66+ *
67+ * @ param ` ssid` a pointer to the SSID string.
6568 */
6669 int begin (const char * ssid);
6770
68-
69-
70- /* Start WiFi connection with passphrase
71- * the most secure supported mode will be automatically selected
71+ /* *
72+ * @brief start WiFi connection with passphrase the most secure
73+ * supported mode will be automatically selected.
7274 *
73- * param ssid: Pointer to the SSID string.
74- * param passphrase: Passphrase. Valid characters in a passphrase
75- * must be between ASCII 32-126 (decimal).
75+ * @ param ` ssid` Pointer to the SSID string.
76+ * @ param ` passphrase` Passphrase. Valid characters in a passphrase
77+ * must be between ASCII 32-126 (decimal).
7678 */
7779 int begin (const char * ssid, const char *passphrase);
7880
79- /* connect as Access Point with a standard passphrase */
81+ /* *
82+ * @brief Starts a Wi-Fi Access Point with the specified SSID.
83+ *
84+ * This function initializes a Wi-Fi Access Point (AP) with the given SSID.
85+ * It defaults to an open network (no password) and uses channel 1 for the AP.
86+ *
87+ * @param `ssid` The SSID (network name) of the Access Point.
88+ *
89+ * @return 1 if the Access Point is successfully started. 0 if the Access Point initialization failed.
90+ */
8091 uint8_t beginAP (const char *ssid);
92+ uint8_t beginAP (const char *ssid);
93+
94+ /* *
95+ * @brief Starts a Wi-Fi Access Point (AP) with the specified SSID and channel.
96+ *
97+ * This function initializes a Wi-Fi Access Point (AP) with the provided SSID
98+ * and channel. It defaults to using no password (open network).
99+ *
100+ * @param `ssid` The SSID (name) of the Wi-Fi Access Point.
101+ * @param `channel` The channel on which the Access Point will operate.
102+ *
103+ * @return 1 if the Access Point is successfully started. 0 if the Access Point failed to start.
104+ */
81105 uint8_t beginAP (const char *ssid, uint8_t channel);
106+
107+ /* *
108+ * @brief Starts a Wi-Fi Access Point (AP) with the specified SSID and passphrase.
109+ *
110+ * This function initializes a Wi-Fi Access Point (AP) using the provided SSID
111+ * and passphrase, defaulting to channel 1.
112+ *
113+ * @param `ssid` The SSID (name) of the Wi-Fi Access Point.
114+ * @param `passphrase` The passphrase for securing the Access Point. If empty, the
115+ * network will be open (no password).
116+ *
117+ * @return 1 if the Access Point is successfully started. 0 if the Access Point failed to start.
118+ */
82119 uint8_t beginAP (const char *ssid, const char * passphrase);
120+
121+ /* *
122+ * @brief Initializes a Wi-Fi Access Point (AP) with the specified SSID, passphrase, and channel.
123+ *
124+ * This function configures the device as a Wi-Fi Access Point (AP) with the provided parameters.
125+ * It sets the mode to AP and attempts to start the network.
126+ *
127+ * @param `ssid` The SSID (name) of the Wi-Fi Access Point.
128+ * @param `passphrase` The passphrase for securing the Access Point. If empty, the network will be open.
129+ * @param `channel` The Wi-Fi channel on which the Access Point will operate (1-14, depending on region).
130+ *
131+ * @return WL_AP_LISTENING if the Access Point is successfully started. WL_AP_FAILED if the Access Point failed to start.
132+ */
83133 uint8_t beginAP (const char *ssid, const char * passphrase, uint8_t channel);
84134
85135
0 commit comments