Skip to content

Commit 66504e2

Browse files
committed
Merge remote-tracking branch 'origin/wifi_leven_dev' into mac_address_dev
Former-commit-id: b4ebf11
2 parents ae115fa + 9cd071b commit 66504e2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

libraries/WiFiS3/src/WiFi.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,25 +157,27 @@ void CWifi::config(IPAddress local_ip, IPAddress dns_server, IPAddress gateway,
157157

158158
/* -------------------------------------------------------------------------- */
159159
void CWifi::setDNS(IPAddress dns_server1) {
160-
/* -------------------------------------------------------------------------- */
160+
/* -------------------------------------------------------------------------- */
161161
IPAddress dns(0,0,0,0);
162162
return _config(localIP(), gatewayIP(), subnetMask(),dns_server1,dns);
163163
}
164164

165165
/* -------------------------------------------------------------------------- */
166166
void CWifi::setDNS(IPAddress dns_server1, IPAddress dns_server2) {
167-
/* -------------------------------------------------------------------------- */
167+
/* -------------------------------------------------------------------------- */
168168
return _config(localIP(), gatewayIP(), subnetMask(),dns_server1,dns_server2);
169169
}
170170

171171
/* -------------------------------------------------------------------------- */
172172
void CWifi::setHostname(const char* name) {
173-
/* -------------------------------------------------------------------------- */
173+
/* -------------------------------------------------------------------------- */
174+
string res = "";
175+
modem.write(string(DO_NOT_CHECK_CMD),res, "%s%s\r\n" , CMD_WRITE(_BEGINSOFTAP), name);
174176
}
175177

176178
/* -------------------------------------------------------------------------- */
177179
int CWifi::disconnect() {
178-
/* -------------------------------------------------------------------------- */
180+
/* -------------------------------------------------------------------------- */
179181
string res = "";
180182
modem.begin();
181183

0 commit comments

Comments
 (0)