Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c78fd2b

Browse files
committedJul 17, 2024
Unifying codestyle
1 parent 0af3cba commit c78fd2b

File tree

3 files changed

+109
-129
lines changed

3 files changed

+109
-129
lines changed
 

‎libraries/WiFiS3/src/Modem.cpp

Lines changed: 41 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -9,110 +9,91 @@ using namespace std;
99
/* -------------------------------------------------------------------------- */
1010
ModemClass::ModemClass(int tx, int rx) : beginned(false), delete_serial(false), _timeout(MODEM_TIMEOUT), trim_results(true), read_by_size(false) {
1111
/* -------------------------------------------------------------------------- */
12-
_serial = new UART(tx,rx);
12+
_serial = new UART(tx,rx);
1313
}
1414

1515
/* -------------------------------------------------------------------------- */
1616
ModemClass::ModemClass(UART * serial) : beginned(false) , delete_serial(true) , _serial(serial), _timeout(MODEM_TIMEOUT), trim_results(true), read_by_size(false) {
17-
/* -------------------------------------------------------------------------- */
17+
/* -------------------------------------------------------------------------- */
1818
}
1919

2020
/* -------------------------------------------------------------------------- */
2121
ModemClass::~ModemClass() {
22-
/* -------------------------------------------------------------------------- */
23-
if(_serial != nullptr && !delete_serial){
22+
/* -------------------------------------------------------------------------- */
23+
if(_serial != nullptr && !delete_serial){
2424
delete _serial;
2525
_serial = nullptr;
26-
}
26+
}
2727
}
2828

2929
/* -------------------------------------------------------------------------- */
3030
void ModemClass::begin(int badurate){
31-
/* -------------------------------------------------------------------------- */
32-
if(_serial != nullptr && !beginned) {
31+
/* -------------------------------------------------------------------------- */
32+
if(_serial != nullptr && !beginned) {
3333
_serial->begin(badurate);
3434
beginned = true;
3535
string res = "";
3636
_serial->flush();
3737
modem.write(string(PROMPT(_SOFTRESETWIFI)),res, "%s" , CMD(_SOFTRESETWIFI));
38-
}
38+
}
3939
}
4040

4141
/* -------------------------------------------------------------------------- */
4242
void ModemClass::end(){
43-
/* -------------------------------------------------------------------------- */
44-
_serial->end();
43+
/* -------------------------------------------------------------------------- */
44+
_serial->end();
4545
}
4646

4747
/* -------------------------------------------------------------------------- */
4848
bool ModemClass::passthrough(const uint8_t *data, size_t size) {
49-
/* -------------------------------------------------------------------------- */
49+
/* -------------------------------------------------------------------------- */
5050
_serial->write(data,size);
51-
bool res = false;
52-
bool found = false;
53-
string data_res = "";
54-
55-
unsigned long start_time = millis();
56-
while(millis() - start_time < _timeout && !found){
57-
while(_serial->available()){
58-
char c = _serial->read();
59-
data_res += c;
60-
61-
if(string::npos != data_res.rfind(RESULT_OK)){
62-
found = true;
63-
res = true;
64-
break;
65-
}
66-
else if (string::npos != data_res.rfind(RESULT_ERROR)) {
67-
found = true;
68-
res = false;
69-
break;
70-
}
71-
}
72-
}
73-
74-
if(_serial_debug && _debug_level >= 2) {
75-
_serial_debug->print(" ANSWER (passthrough): ");
76-
_serial_debug->println(data_res.c_str());
77-
if(res) {
78-
_serial_debug->println(" Result: OK");
79-
}
80-
else {
81-
_serial_debug->println(" Result: FAILED");
82-
}
83-
}
84-
51+
52+
std::string tmp, data_res; // FIXME
53+
bool res = buf_read(tmp, data_res);
54+
55+
// if(_serial_debug && _debug_level >= 2) {
56+
// _serial_debug->print(" ANSWER (passthrough): ");
57+
// _serial_debug->println(data_res.c_str());
58+
// if(res) {
59+
// _serial_debug->println(" Result: OK");
60+
// }
61+
// else {
62+
// _serial_debug->println(" Result: FAILED");
63+
// }
64+
// }
65+
8566
return res;
8667
}
8768

8869
/* -------------------------------------------------------------------------- */
8970
void ModemClass::write_nowait(const string &cmd, string &str, const char * fmt, ...) {
90-
/* -------------------------------------------------------------------------- */
71+
/* -------------------------------------------------------------------------- */
9172
va_list va;
9273
va_start (va, fmt);
9374
vsnprintf((char *)tx_buff, MAX_BUFF_SIZE, fmt, va);
9475
va_end (va);
95-
96-
if(_serial_debug && _debug_level >= 2) {
76+
77+
if(_serial_debug && _debug_level >= 2) {
9778
_serial_debug->print("REQUEST (passthrough): ");
9879
_serial_debug->write(tx_buff,strlen((char *)tx_buff));
9980
_serial_debug->println();
10081
}
101-
82+
10283
_serial->write(tx_buff,strlen((char *)tx_buff));
10384
return;
10485
}
10586

10687

10788
/* -------------------------------------------------------------------------- */
10889
bool ModemClass::write(const string &prompt, string &data_res, const char * fmt, ...){
109-
/* -------------------------------------------------------------------------- */
90+
/* -------------------------------------------------------------------------- */
11091
data_res.clear();
11192
va_list va;
11293
va_start (va, fmt);
11394
vsnprintf((char *)tx_buff, MAX_BUFF_SIZE, fmt, va);
11495
va_end (va);
115-
96+
11697
if(_serial_debug) {
11798
_serial_debug->println();
11899
_serial_debug->print("REQUEST: ");
@@ -121,7 +102,7 @@ bool ModemClass::write(const string &prompt, string &data_res, const char * fmt,
121102
}
122103

123104
_serial->write(tx_buff,strlen((char *)tx_buff));
124-
return buf_read(prompt,data_res);;
105+
return buf_read(prompt, data_res);;
125106
}
126107

127108

@@ -134,7 +115,7 @@ typedef enum {
134115

135116
/* -------------------------------------------------------------------------- */
136117
bool ModemClass::read_by_size_finished(string &rx) {
137-
/* -------------------------------------------------------------------------- */
118+
/* -------------------------------------------------------------------------- */
138119
bool rv = false;
139120
static bool first_call = true;
140121
static ReadBySizeSt_t st = IDLE;
@@ -194,7 +175,7 @@ bool ModemClass::read_by_size_finished(string &rx) {
194175

195176
/* -------------------------------------------------------------------------- */
196177
bool ModemClass::buf_read(const string &prompt, string &data_res) {
197-
/* -------------------------------------------------------------------------- */
178+
/* -------------------------------------------------------------------------- */
198179
bool res = false;
199180
bool found = false;
200181

@@ -262,6 +243,7 @@ bool ModemClass::buf_read(const string &prompt, string &data_res) {
262243
}
263244
}
264245
}
246+
265247
if(trim_results) {
266248
trim(data_res);
267249
}
@@ -273,23 +255,22 @@ bool ModemClass::buf_read(const string &prompt, string &data_res) {
273255
_serial_debug->println();
274256
}
275257

276-
if(_serial_debug) {
258+
if(_serial_debug) {
277259
_serial_debug->print(" ANSWER: ");
278260
_serial_debug->println(data_res.c_str());
279261
if(res) {
280262
_serial_debug->println(" Result: OK");
281263
}
282264
else {
283265
_serial_debug->println(" Result: FAILED");
284-
}
285-
}
286-
266+
}
267+
}
287268

288269
return res;
289270
}
290271

291272
#ifdef ARDUINO_UNOWIFIR4
292-
ModemClass modem = ModemClass(&Serial2);
273+
ModemClass modem = ModemClass(&Serial2);
293274
#else
294-
ModemClass modem = ModemClass(D24,D25);
275+
ModemClass modem = ModemClass(D24,D25);
295276
#endif

‎libraries/WiFiS3/src/Modem.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ class ModemClass {
3636

3737
void read_using_size() {
3838
read_by_size = true;
39-
}
39+
}
4040
bool beginned;
4141

4242
/* calling this function with no argument will enable debug message to be printed
4343
on Serial
44-
use first parameter UART *u to redirect debug output to a different serial
44+
use first parameter UART *u to redirect debug output to a different serial
4545
4646
level from 0 defaul to 2 (maximum) */
4747

4848
void debug(Stream &u, uint8_t level = 0) {
4949
_serial_debug = &u;
50-
50+
5151
if(level > 2) {
5252
level = 2;
5353
}

‎libraries/WiFiS3/src/WiFi.cpp

Lines changed: 65 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const char* CWifi::firmwareVersion() {
2020
return fw_version;
2121
}
2222
return "99.99.99";
23-
2423
}
2524

2625

@@ -54,7 +53,7 @@ int CWifi::begin(const char* ssid, const char *passphrase) {
5453
return WL_CONNECTED;
5554
}
5655
}
57-
return WL_CONNECT_FAILED;
56+
return WL_CONNECT_FAILED;
5857
}
5958

6059
/* passphrase is needed so a default one will be set */
@@ -78,7 +77,7 @@ uint8_t CWifi::beginAP(const char *ssid, const char* passphrase) {
7877

7978
/* -------------------------------------------------------------------------- */
8079
uint8_t CWifi::beginAP(const char *ssid, const char* passphrase, uint8_t channel) {
81-
/* -------------------------------------------------------------------------- */
80+
/* -------------------------------------------------------------------------- */
8281
string res = "";
8382
modem.begin();
8483
modem.write(string(PROMPT(_MODE)),res, "%s%d\r\n" , CMD_WRITE(_MODE), 2);
@@ -97,10 +96,10 @@ uint8_t CWifi::beginAP(const char *ssid, const char* passphrase, uint8_t channel
9796
/* -------------------------------------------------------------------------- */
9897
void CWifi::config(IPAddress local_ip) {
9998
/* -------------------------------------------------------------------------- */
100-
IPAddress _gw(local_ip[0],local_ip[1], local_ip[2], 1);
101-
IPAddress _sm(255,255,255,0);
102-
IPAddress dns(0,0,0,0);
103-
return _config(local_ip, _gw, _sm, _gw, dns);
99+
IPAddress _gw(local_ip[0],local_ip[1], local_ip[2], 1);
100+
IPAddress _sm(255,255,255,0);
101+
IPAddress dns(0,0,0,0);
102+
return _config(local_ip, _gw, _sm, _gw, dns);
104103
}
105104

106105
/* -------------------------------------------------------------------------- */
@@ -116,7 +115,7 @@ void CWifi::_config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPA
116115
string gw = to_string(gateway[0]) + ".";
117116
gw += to_string(gateway[1]) + ".";
118117
gw += to_string(gateway[2]) + ".";
119-
gw += to_string(gateway[3]);
118+
gw += to_string(gateway[3]);
120119

121120
string nm = to_string(subnet[0]) + ".";
122121
nm += to_string(subnet[1]) + ".";
@@ -127,18 +126,18 @@ void CWifi::_config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPA
127126
_dns1 += to_string(dns1[1]) + ".";
128127
_dns1 += to_string(dns1[2]) + ".";
129128
_dns1 += to_string(dns1[3]);
130-
129+
131130
string _dns2 = to_string(dns2[0]) + ".";
132131
_dns2 += to_string(dns2[1]) + ".";
133132
_dns2 += to_string(dns2[2]) + ".";
134-
_dns2 += to_string(dns2[3]);
133+
_dns2 += to_string(dns2[3]);
135134

136135
ip_ap = local_ip;
137136
gw_ap = gateway;
138137
nm_ap = subnet;
139138

140139
modem.write(PROMPT(_SOFTAPCONFIG),res, "%s%s,%s,%s\r\n" , CMD_WRITE(_SOFTAPCONFIG), ip.c_str(), ip.c_str(), nm.c_str());
141-
modem.write(string(PROMPT(_SETIP)),res, "%s%s,%s,%s,%s,%s\r\n" , CMD_WRITE(_SETIP), ip.c_str(), gw.c_str(), nm.c_str(),_dns1.c_str(),_dns2.c_str());
140+
modem.write(string(PROMPT(_SETIP)),res, "%s%s,%s,%s,%s,%s\r\n" , CMD_WRITE(_SETIP), ip.c_str(), gw.c_str(), nm.c_str(),_dns1.c_str(),_dns2.c_str());
142141
}
143142

144143
/* -------------------------------------------------------------------------- */
@@ -152,32 +151,32 @@ void CWifi::config(IPAddress local_ip, IPAddress dns_server) {
152151

153152
/* -------------------------------------------------------------------------- */
154153
void CWifi::config(IPAddress local_ip, IPAddress dns_server, IPAddress gateway) {
155-
/* -------------------------------------------------------------------------- */
156-
154+
/* -------------------------------------------------------------------------- */
155+
157156
IPAddress _sm(255,255,255,0);
158157
IPAddress dns(0,0,0,0);
159-
return _config(local_ip, gateway, _sm,dns_server,dns);
158+
return _config(local_ip, gateway, _sm,dns_server,dns);
160159
}
161160

162161
/* -------------------------------------------------------------------------- */
163162
void CWifi::config(IPAddress local_ip, IPAddress dns_server, IPAddress gateway, IPAddress subnet) {
164163
/* -------------------------------------------------------------------------- */
165-
164+
166165
IPAddress dns(0,0,0,0);
167-
return _config(local_ip, gateway, subnet,dns_server,dns);
166+
return _config(local_ip, gateway, subnet,dns_server,dns);
168167
}
169168

170169
/* -------------------------------------------------------------------------- */
171170
void CWifi::setDNS(IPAddress dns_server1) {
172171
/* -------------------------------------------------------------------------- */
173172
IPAddress dns(0,0,0,0);
174-
return _config(localIP(), gatewayIP(), subnetMask(),dns_server1,dns);
173+
return _config(localIP(), gatewayIP(), subnetMask(),dns_server1,dns);
175174
}
176175

177176
/* -------------------------------------------------------------------------- */
178177
void CWifi::setDNS(IPAddress dns_server1, IPAddress dns_server2) {
179178
/* -------------------------------------------------------------------------- */
180-
return _config(localIP(), gatewayIP(), subnetMask(),dns_server1,dns_server2);
179+
return _config(localIP(), gatewayIP(), subnetMask(),dns_server1,dns_server2);
181180
}
182181

183182
/* -------------------------------------------------------------------------- */
@@ -189,20 +188,20 @@ void CWifi::setHostname(const char* name) {
189188

190189
/* -------------------------------------------------------------------------- */
191190
int CWifi::disconnect() {
192-
/* -------------------------------------------------------------------------- */
191+
/* -------------------------------------------------------------------------- */
193192
string res = "";
194193
modem.begin();
195194

196195
if(modem.write(string(PROMPT(_DISCONNECT)),res,CMD(_DISCONNECT))) {
197196
return 1;
198-
}
197+
}
199198
return 0;
200199

201200
}
202201

203202
/* -------------------------------------------------------------------------- */
204203
void CWifi::end(void) {
205-
/* -------------------------------------------------------------------------- */
204+
/* -------------------------------------------------------------------------- */
206205
string res = "";
207206
modem.begin();
208207

@@ -211,7 +210,7 @@ void CWifi::end(void) {
211210

212211

213212
static bool macStr2macArray(uint8_t *mac_out, const char *mac_in) {
214-
if(mac_in[2] != ':' ||
213+
if(mac_in[2] != ':' ||
215214
mac_in[5] != ':' ||
216215
mac_in[8] != ':' ||
217216
mac_in[11] != ':' ||
@@ -230,10 +229,10 @@ static bool macStr2macArray(uint8_t *mac_out, const char *mac_in) {
230229

231230
/* -------------------------------------------------------------------------- */
232231
uint8_t* CWifi::macAddress(uint8_t* _mac) {
233-
/* -------------------------------------------------------------------------- */
234-
string res = "";
235-
modem.begin();
236-
if(modem.write(string(PROMPT(_MODE)),res, "%s" , CMD_READ(_MODE))) {
232+
/* -------------------------------------------------------------------------- */
233+
string res = "";
234+
modem.begin();
235+
if(modem.write(string(PROMPT(_MODE)),res, "%s" , CMD_READ(_MODE))) {
237236
if(atoi(res.c_str()) == 1) {
238237
if(modem.write(string(PROMPT(_MACSTA)),res, "%s" , CMD_READ(_MACSTA))) {
239238
macStr2macArray(_mac, res.c_str());
@@ -280,7 +279,7 @@ int8_t CWifi::scanNetworks() {
280279
ap.encryption_mode = tokens[4];
281280
access_points.push_back(ap);
282281
}
283-
}
282+
}
284283
}
285284

286285
return (int8_t)access_points.size();
@@ -317,7 +316,7 @@ IPAddress CWifi::dnsIP(int n) {
317316
return dns_IP;
318317
}
319318
}
320-
return IPAddress(0,0,0,0);
319+
return IPAddress(0,0,0,0);
321320
}
322321

323322

@@ -334,14 +333,14 @@ IPAddress CWifi::localIP() {
334333
if(modem.write(string(PROMPT(_MODE)),res, "%s" , CMD_READ(_MODE))) {
335334
if(atoi(res.c_str()) == 1) {
336335
if(modem.write(string(PROMPT(_IPSTA)),res, "%s%d\r\n" , CMD_WRITE(_IPSTA), IP_ADDR)) {
337-
336+
338337
local_IP.fromString(res.c_str());
339-
338+
340339
}
341340
}
342341
else if(atoi(res.c_str()) == 2) {
343342
if(modem.write(string(PROMPT(_IPSOFTAP)),res, CMD(_IPSOFTAP))) {
344-
343+
345344
local_IP.fromString(res.c_str());
346345
}
347346
}
@@ -376,27 +375,27 @@ IPAddress CWifi::gatewayIP() {
376375
gateway_IP.fromString(res.c_str());
377376
return gateway_IP;
378377
}
379-
return IPAddress(0,0,0,0);
378+
return IPAddress(0,0,0,0);
380379
}
381380

382381
/* -------------------------------------------------------------------------- */
383382
const char* CWifi::SSID(uint8_t networkItem) {
384383
/* -------------------------------------------------------------------------- */
385-
if(networkItem < access_points.size()) {
386-
return access_points[networkItem].ssid.c_str();
387-
}
388-
return nullptr;
384+
if(networkItem < access_points.size()) {
385+
return access_points[networkItem].ssid.c_str();
386+
}
387+
return nullptr;
389388
}
390-
/* -------------------------------------------------------------------------- */
389+
/* -------------------------------------------------------------------------- */
391390

392391
/* -------------------------------------------------------------------------- */
393392
int32_t CWifi::RSSI(uint8_t networkItem) {
394-
if(networkItem < access_points.size()) {
395-
return atoi(access_points[networkItem].rssi.c_str());
396-
}
397-
return -1000;
393+
if(networkItem < access_points.size()) {
394+
return atoi(access_points[networkItem].rssi.c_str());
395+
}
396+
return -1000;
398397
}
399-
/* -------------------------------------------------------------------------- */
398+
/* -------------------------------------------------------------------------- */
400399

401400
static uint8_t Encr2wl_enc(string e) {
402401
if (e == string("open")) {
@@ -418,17 +417,17 @@ static uint8_t Encr2wl_enc(string e) {
418417
} else {
419418
return ENC_TYPE_UNKNOWN;
420419
}
421-
}
420+
}
422421

423422

424423
/* -------------------------------------------------------------------------- */
425424
uint8_t CWifi::encryptionType() {
426-
/* -------------------------------------------------------------------------- */
425+
/* -------------------------------------------------------------------------- */
427426
scanNetworks();
428427
string myssid(SSID());
429428
for(unsigned int i = 0; i < access_points.size(); i++) {
430429
if(myssid == access_points[i].ssid) {
431-
return Encr2wl_enc(access_points[i].encryption_mode);
430+
return Encr2wl_enc(access_points[i].encryption_mode);
432431
}
433432
}
434433
return ENC_TYPE_UNKNOWN;
@@ -437,35 +436,35 @@ uint8_t CWifi::encryptionType() {
437436

438437
/* -------------------------------------------------------------------------- */
439438
uint8_t CWifi::encryptionType(uint8_t networkItem) {
440-
if(networkItem < access_points.size()) {
441-
return Encr2wl_enc(access_points[networkItem].encryption_mode);
442-
}
443-
return 0;
439+
if(networkItem < access_points.size()) {
440+
return Encr2wl_enc(access_points[networkItem].encryption_mode);
441+
}
442+
return 0;
444443
}
445-
/* -------------------------------------------------------------------------- */
444+
/* -------------------------------------------------------------------------- */
446445

447446
/* -------------------------------------------------------------------------- */
448447
uint8_t* CWifi::BSSID(uint8_t networkItem, uint8_t* bssid) {
449448
if(networkItem < access_points.size()) {
450449
for(int i = 0; i < 6; i++) {
451450
*(bssid + i) = access_points[networkItem].uint_bssid[i];
452451
}
453-
return bssid;
452+
return bssid;
454453
}
455-
return nullptr;
454+
return nullptr;
456455
}
457-
/* -------------------------------------------------------------------------- */
456+
/* -------------------------------------------------------------------------- */
458457

459458
/* -------------------------------------------------------------------------- */
460-
uint8_t CWifi::channel(uint8_t networkItem) {
459+
uint8_t CWifi::channel(uint8_t networkItem) {
461460
if(networkItem < access_points.size()) {
462-
return atoi(access_points[networkItem].channel.c_str());
461+
return atoi(access_points[networkItem].channel.c_str());
463462
}
464463
return 0;
465464
}
466-
/* -------------------------------------------------------------------------- */
465+
/* -------------------------------------------------------------------------- */
467466

468-
/* -------------------------------------------------------------------------- */
467+
/* -------------------------------------------------------------------------- */
469468
const char* CWifi::SSID() {
470469
/* -------------------------------------------------------------------------- */
471470
string res = "";
@@ -486,9 +485,9 @@ const char* CWifi::SSID() {
486485
return "";
487486
}
488487

489-
/* -------------------------------------------------------------------------- */
488+
/* -------------------------------------------------------------------------- */
490489
uint8_t* CWifi::BSSID(uint8_t* bssid) {
491-
/* -------------------------------------------------------------------------- */
490+
/* -------------------------------------------------------------------------- */
492491
string res = "";
493492
if(modem.write(string(PROMPT(_GETBSSID)), res, CMD_READ(_GETBSSID))) {
494493
macStr2macArray(bssid, res.c_str());
@@ -497,7 +496,7 @@ uint8_t* CWifi::BSSID(uint8_t* bssid) {
497496
return nullptr;
498497
}
499498

500-
/* -------------------------------------------------------------------------- */
499+
/* -------------------------------------------------------------------------- */
501500
int32_t CWifi::RSSI() {
502501
/* -------------------------------------------------------------------------- */
503502
string res = "";
@@ -507,9 +506,9 @@ int32_t CWifi::RSSI() {
507506
return 0;
508507
}
509508

510-
/* -------------------------------------------------------------------------- */
509+
/* -------------------------------------------------------------------------- */
511510
const char* CWifi::softAPSSID() {
512-
/* -------------------------------------------------------------------------- */
511+
/* -------------------------------------------------------------------------- */
513512
string res = "";
514513
if(modem.write(string(PROMPT(_GETSOFTAPSSID)), res, CMD_READ(_GETSOFTAPSSID))) {
515514
apssid = res;
@@ -520,7 +519,7 @@ const char* CWifi::softAPSSID() {
520519

521520
/* -------------------------------------------------------------------------- */
522521
uint8_t CWifi::status() {
523-
/* -------------------------------------------------------------------------- */
522+
/* -------------------------------------------------------------------------- */
524523
modem.begin();
525524
string res = "";
526525
if(modem.write(string(PROMPT(_GETSTATUS)), res, CMD_READ(_GETSTATUS))) {
@@ -532,7 +531,7 @@ uint8_t CWifi::status() {
532531

533532
/* -------------------------------------------------------------------------- */
534533
int CWifi::hostByName(const char* aHostname, IPAddress& aResult) {
535-
/* -------------------------------------------------------------------------- */
534+
/* -------------------------------------------------------------------------- */
536535
modem.begin();
537536
string res = "";
538537
if(modem.write(string(PROMPT(_GETHOSTBYNAME)),res, "%s%s\r\n" , CMD_WRITE(_GETHOSTBYNAME), aHostname)) {
@@ -545,11 +544,11 @@ int CWifi::hostByName(const char* aHostname, IPAddress& aResult) {
545544

546545

547546
uint8_t CWifi::reasonCode() {
548-
return 0;
547+
return 0;
549548
}
550549

551550
unsigned long CWifi::getTime() {
552-
return 0;
551+
return 0;
553552
}
554553

555554

0 commit comments

Comments
 (0)
Please sign in to comment.