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