@@ -51,35 +51,85 @@ class CWifi {
51
51
52
52
53
53
public:
54
+ /* *
55
+ * @brief Default constructor for the CWifi class.
56
+ */
54
57
CWifi ();
55
58
56
- /*
57
- * Get firmware version
59
+ /* *
60
+ * @brief Get firmware version
58
61
*/
59
62
static const char * firmwareVersion ();
60
63
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.
65
68
*/
66
69
int begin (const char * ssid);
67
70
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.
72
74
*
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).
76
78
*/
77
79
int begin (const char * ssid, const char *passphrase);
78
80
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
+ */
80
91
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
+ */
81
105
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
+ */
82
119
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
+ */
83
133
uint8_t beginAP (const char *ssid, const char * passphrase, uint8_t channel);
84
134
85
135
0 commit comments