@@ -55,27 +55,27 @@ 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
void MACAddress (uint8_t *mac_address);
69
69
70
70
/* Start Wifi connection with passphrase
71
- * the most secure supported mode will be automatically selected
72
- *
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).
76
- */
71
+ * the most secure supported mode will be automatically selected
72
+ *
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).
76
+ */
77
77
int begin (const char * ssid, const char * passphrase, wl_enc_type security = ENC_TYPE_UNKNOWN);
78
-
78
+
79
79
// Inherit config methods from the parent class
80
80
using MbedSocketClass::config;
81
81
@@ -84,86 +84,86 @@ class WiFiClass : public MbedSocketClass {
84
84
int beginAP (const char * ssid, const char * passphrase, uint8_t channel = DEFAULT_AP_CHANNEL);
85
85
86
86
/*
87
- * Disconnect from the network
88
- *
89
- * return: one value of wl_status_t enum
90
- */
87
+ * Disconnect from the network
88
+ *
89
+ * return: one value of wl_status_t enum
90
+ */
91
91
int disconnect (void );
92
92
93
93
void end (void );
94
94
95
95
/*
96
- * Return the current SSID associated with the network
97
- *
98
- * return: ssid string
99
- */
96
+ * Return the current SSID associated with the network
97
+ *
98
+ * return: ssid string
99
+ */
100
100
char * SSID ();
101
101
102
102
/*
103
- * Return the current BSSID associated with the network.
104
- * It is the MAC address of the Access Point
105
- *
106
- * return: pointer to uint8_t array with length WL_MAC_ADDR_LENGTH
107
- */
103
+ * Return the current BSSID associated with the network.
104
+ * It is the MAC address of the Access Point
105
+ *
106
+ * return: pointer to uint8_t array with length WL_MAC_ADDR_LENGTH
107
+ */
108
108
uint8_t * BSSID (uint8_t * bssid);
109
109
110
110
/*
111
- * Return the current RSSI /Received Signal Strength in dBm)
112
- * associated with the network
113
- *
114
- * return: signed value
115
- */
111
+ * Return the current RSSI /Received Signal Strength in dBm)
112
+ * associated with the network
113
+ *
114
+ * return: signed value
115
+ */
116
116
int32_t RSSI ();
117
117
118
118
/*
119
- * Return the Encryption Type associated with the network
120
- *
121
- * return: one value of wl_enc_type enum
122
- */
119
+ * Return the Encryption Type associated with the network
120
+ *
121
+ * return: one value of wl_enc_type enum
122
+ */
123
123
uint8_t encryptionType ();
124
124
125
125
/*
126
- * Start scan WiFi networks available
127
- *
128
- * return: Number of discovered networks
129
- */
126
+ * Start scan WiFi networks available
127
+ *
128
+ * return: Number of discovered networks
129
+ */
130
130
int8_t scanNetworks ();
131
131
132
132
/*
133
- * Return the SSID discovered during the network scan.
134
- *
135
- * param networkItem: specify from which network item want to get the information
136
- *
137
- * return: ssid string of the specified item on the networks scanned list
138
- */
133
+ * Return the SSID discovered during the network scan.
134
+ *
135
+ * param networkItem: specify from which network item want to get the information
136
+ *
137
+ * return: ssid string of the specified item on the networks scanned list
138
+ */
139
139
char * SSID (uint8_t networkItem);
140
140
141
141
/*
142
- * Return the encryption type of the networks discovered during the scanNetworks
143
- *
144
- * param networkItem: specify from which network item want to get the information
145
- *
146
- * return: encryption type (enum wl_enc_type) of the specified item on the networks scanned list
147
- */
142
+ * Return the encryption type of the networks discovered during the scanNetworks
143
+ *
144
+ * param networkItem: specify from which network item want to get the information
145
+ *
146
+ * return: encryption type (enum wl_enc_type) of the specified item on the networks scanned list
147
+ */
148
148
uint8_t encryptionType (uint8_t networkItem);
149
149
150
150
uint8_t * BSSID (uint8_t networkItem, uint8_t * bssid);
151
151
uint8_t channel (uint8_t networkItem);
152
152
153
153
/*
154
- * Return the RSSI of the networks discovered during the scanNetworks
155
- *
156
- * param networkItem: specify from which network item want to get the information
157
- *
158
- * return: signed value of RSSI of the specified item on the networks scanned list
159
- */
154
+ * Return the RSSI of the networks discovered during the scanNetworks
155
+ *
156
+ * param networkItem: specify from which network item want to get the information
157
+ *
158
+ * return: signed value of RSSI of the specified item on the networks scanned list
159
+ */
160
160
int32_t RSSI (uint8_t networkItem);
161
161
162
162
/*
163
- * Return Connection status.
164
- *
165
- * return: one of the value defined in wl_status_t
166
- */
163
+ * Return Connection status.
164
+ *
165
+ * return: one of the value defined in wl_status_t
166
+ */
167
167
uint8_t status ();
168
168
169
169
unsigned long getTime ();
0 commit comments