@@ -55,14 +55,14 @@ class WiFiClass : public MbedSocketClass {
55
55
: wifi_if(_if){};
56
56
57
57
/*
58
- * Get firmware version
59
- */
58
+ * Get firmware version
59
+ */
60
60
static const char * firmwareVersion ();
61
61
62
62
/* Start Wifi connection for OPEN networks
63
- *
64
- * param ssid: Pointer to the SSID string.
65
- */
63
+ *
64
+ * param ssid: Pointer to the SSID string.
65
+ */
66
66
int begin (const char * ssid);
67
67
68
68
/*
@@ -74,14 +74,14 @@ class WiFiClass : public MbedSocketClass {
74
74
void MACAddress (uint8_t *mac_address) __attribute__ ((deprecated(" Use macAddress(uint8_t *mac_address)" )));
75
75
76
76
/* Start Wifi connection with passphrase
77
- * the most secure supported mode will be automatically selected
78
- *
79
- * param ssid: Pointer to the SSID string.
80
- * param passphrase: Passphrase. Valid characters in a passphrase
81
- * must be between ASCII 32-126 (decimal).
82
- */
77
+ * the most secure supported mode will be automatically selected
78
+ *
79
+ * param ssid: Pointer to the SSID string.
80
+ * param passphrase: Passphrase. Valid characters in a passphrase
81
+ * must be between ASCII 32-126 (decimal).
82
+ */
83
83
int begin (const char * ssid, const char * passphrase, wl_enc_type security = ENC_TYPE_UNKNOWN);
84
-
84
+
85
85
// Inherit config methods from the parent class
86
86
using MbedSocketClass::config;
87
87
@@ -90,86 +90,86 @@ class WiFiClass : public MbedSocketClass {
90
90
int beginAP (const char * ssid, const char * passphrase, uint8_t channel = DEFAULT_AP_CHANNEL);
91
91
92
92
/*
93
- * Disconnect from the network
94
- *
95
- * return: one value of wl_status_t enum
96
- */
93
+ * Disconnect from the network
94
+ *
95
+ * return: one value of wl_status_t enum
96
+ */
97
97
int disconnect (void );
98
98
99
99
void end (void );
100
100
101
101
/*
102
- * Return the current SSID associated with the network
103
- *
104
- * return: ssid string
105
- */
102
+ * Return the current SSID associated with the network
103
+ *
104
+ * return: ssid string
105
+ */
106
106
char * SSID ();
107
107
108
108
/*
109
- * Return the current BSSID associated with the network.
110
- * It is the MAC address of the Access Point
111
- *
112
- * return: pointer to uint8_t array with length WL_MAC_ADDR_LENGTH
113
- */
109
+ * Return the current BSSID associated with the network.
110
+ * It is the MAC address of the Access Point
111
+ *
112
+ * return: pointer to uint8_t array with length WL_MAC_ADDR_LENGTH
113
+ */
114
114
uint8_t * BSSID (uint8_t * bssid);
115
115
116
116
/*
117
- * Return the current RSSI /Received Signal Strength in dBm)
118
- * associated with the network
119
- *
120
- * return: signed value
121
- */
117
+ * Return the current RSSI /Received Signal Strength in dBm)
118
+ * associated with the network
119
+ *
120
+ * return: signed value
121
+ */
122
122
int32_t RSSI ();
123
123
124
124
/*
125
- * Return the Encryption Type associated with the network
126
- *
127
- * return: one value of wl_enc_type enum
128
- */
125
+ * Return the Encryption Type associated with the network
126
+ *
127
+ * return: one value of wl_enc_type enum
128
+ */
129
129
uint8_t encryptionType ();
130
130
131
131
/*
132
- * Start scan WiFi networks available
133
- *
134
- * return: Number of discovered networks
135
- */
132
+ * Start scan WiFi networks available
133
+ *
134
+ * return: Number of discovered networks
135
+ */
136
136
int8_t scanNetworks ();
137
137
138
138
/*
139
- * Return the SSID discovered during the network scan.
140
- *
141
- * param networkItem: specify from which network item want to get the information
142
- *
143
- * return: ssid string of the specified item on the networks scanned list
144
- */
139
+ * Return the SSID discovered during the network scan.
140
+ *
141
+ * param networkItem: specify from which network item want to get the information
142
+ *
143
+ * return: ssid string of the specified item on the networks scanned list
144
+ */
145
145
char * SSID (uint8_t networkItem);
146
146
147
147
/*
148
- * Return the encryption type of the networks discovered during the scanNetworks
149
- *
150
- * param networkItem: specify from which network item want to get the information
151
- *
152
- * return: encryption type (enum wl_enc_type) of the specified item on the networks scanned list
153
- */
148
+ * Return the encryption type of the networks discovered during the scanNetworks
149
+ *
150
+ * param networkItem: specify from which network item want to get the information
151
+ *
152
+ * return: encryption type (enum wl_enc_type) of the specified item on the networks scanned list
153
+ */
154
154
uint8_t encryptionType (uint8_t networkItem);
155
155
156
156
uint8_t * BSSID (uint8_t networkItem, uint8_t * bssid);
157
157
uint8_t channel (uint8_t networkItem);
158
158
159
159
/*
160
- * Return the RSSI of the networks discovered during the scanNetworks
161
- *
162
- * param networkItem: specify from which network item want to get the information
163
- *
164
- * return: signed value of RSSI of the specified item on the networks scanned list
165
- */
160
+ * Return the RSSI of the networks discovered during the scanNetworks
161
+ *
162
+ * param networkItem: specify from which network item want to get the information
163
+ *
164
+ * return: signed value of RSSI of the specified item on the networks scanned list
165
+ */
166
166
int32_t RSSI (uint8_t networkItem);
167
167
168
168
/*
169
- * Return Connection status.
170
- *
171
- * return: one of the value defined in wl_status_t
172
- */
169
+ * Return Connection status.
170
+ *
171
+ * return: one of the value defined in wl_status_t
172
+ */
173
173
uint8_t status ();
174
174
175
175
unsigned long getTime ();
0 commit comments