@@ -100,7 +100,7 @@ bool ESP8266::at_available()
100
100
101
101
_smutex.lock ();
102
102
// Might take a while to respond after HW reset
103
- for (int i = 0 ; i < 5 ; i++) {
103
+ for (int i = 0 ; i < 5 ; i++) {
104
104
ready = _parser.send (" AT" )
105
105
&& _parser.recv (" OK\n " );
106
106
if (ready) {
@@ -195,7 +195,7 @@ bool ESP8266::start_uart_hw_flow_ctrl(void)
195
195
196
196
if (done) {
197
197
// Start board's flow control
198
- _serial.set_flow_control (SerialBase::RTSCTS, _serial_rts, _serial_cts);
198
+ _serial.set_flow_control (SerialBase::RTSCTS, _serial_rts, _serial_cts);
199
199
}
200
200
201
201
} else if (_serial_rts != NC) {
@@ -591,7 +591,7 @@ nsapi_error_t ESP8266::send(int id, const void *data, uint32_t amount)
591
591
// Data stream can be truncated
592
592
if (amount > 2048 && _sock_i[id].proto == NSAPI_TCP) {
593
593
amount = 2048 ;
594
- // Datagram must stay intact
594
+ // Datagram must stay intact
595
595
} else if (amount > 2048 && _sock_i[id].proto == NSAPI_UDP) {
596
596
tr_debug (" UDP datagram maximum size is 2048" );
597
597
return NSAPI_ERROR_PARAMETER;
@@ -606,7 +606,7 @@ nsapi_error_t ESP8266::send(int id, const void *data, uint32_t amount)
606
606
goto END;
607
607
}
608
608
609
- if (!_parser.recv (" >" )) {
609
+ if (!_parser.recv (" >" )) {
610
610
tr_debug (" ESP8266::send(): didn't get \" >\" " );
611
611
ret = NSAPI_ERROR_WOULD_BLOCK;
612
612
goto END;
@@ -657,7 +657,7 @@ void ESP8266::_oob_packet_hdlr()
657
657
return ;
658
658
}
659
659
660
- if (_tcp_passive && _sock_i[id].open == true && _sock_i[id].proto == NSAPI_TCP) {
660
+ if (_tcp_passive && _sock_i[id].open == true && _sock_i[id].proto == NSAPI_TCP) {
661
661
if (_parser.recv (" %d\n " , &amount)) {
662
662
_sock_i[id].tcp_data_avbl = amount;
663
663
@@ -726,7 +726,7 @@ int32_t ESP8266::_recv_tcp_passive(int id, void *data, uint32_t amount, uint32_t
726
726
_process_oob (timeout, true );
727
727
728
728
if (_sock_i[id].tcp_data_avbl != 0 ) {
729
- _sock_i[id].tcp_data = (char *)data;
729
+ _sock_i[id].tcp_data = (char *)data;
730
730
_sock_i[id].tcp_data_rcvd = NSAPI_ERROR_WOULD_BLOCK;
731
731
_sock_active_id = id;
732
732
@@ -735,7 +735,7 @@ int32_t ESP8266::_recv_tcp_passive(int id, void *data, uint32_t amount, uint32_t
735
735
736
736
// NOTE: documentation v3.0 says '+CIPRECVDATA:<data_len>,' but it's not how the FW responds...
737
737
bool done = _parser.send (" AT+CIPRECVDATA=%d,%lu" , id, amount)
738
- && _parser.recv (" OK\n " );
738
+ && _parser.recv (" OK\n " );
739
739
740
740
_sock_i[id].tcp_data = NULL ;
741
741
_sock_active_id = -1 ;
@@ -972,26 +972,26 @@ bool ESP8266::_recv_ap(nsapi_wifi_ap_t *ap)
972
972
973
973
if (FW_AT_LEAST_VERSION (_at_v.major , _at_v.minor , _at_v.patch , 0 , ESP8266_AT_VERSION_WIFI_SCAN_CHANGE)) {
974
974
ret = _parser.recv (" +CWLAP:(%d,\" %32[^\" ]\" ,%hhd,\" %hhx:%hhx:%hhx:%hhx:%hhx:%hhx\" ,%hhu,%d,%d,%d,%d,%d,%d)\n " ,
975
- &sec,
976
- ap->ssid ,
977
- &ap->rssi ,
978
- &ap->bssid [0 ], &ap->bssid [1 ], &ap->bssid [2 ], &ap->bssid [3 ], &ap->bssid [4 ], &ap->bssid [5 ],
979
- &ap->channel ,
980
- &dummy,
981
- &dummy,
982
- &dummy,
983
- &dummy,
984
- &dummy,
985
- &dummy);
975
+ &sec,
976
+ ap->ssid ,
977
+ &ap->rssi ,
978
+ &ap->bssid [0 ], &ap->bssid [1 ], &ap->bssid [2 ], &ap->bssid [3 ], &ap->bssid [4 ], &ap->bssid [5 ],
979
+ &ap->channel ,
980
+ &dummy,
981
+ &dummy,
982
+ &dummy,
983
+ &dummy,
984
+ &dummy,
985
+ &dummy);
986
986
} else {
987
987
ret = _parser.recv (" +CWLAP:(%d,\" %32[^\" ]\" ,%hhd,\" %hhx:%hhx:%hhx:%hhx:%hhx:%hhx\" ,%hhu,%d,%d)\n " ,
988
- &sec,
989
- ap->ssid ,
990
- &ap->rssi ,
991
- &ap->bssid [0 ], &ap->bssid [1 ], &ap->bssid [2 ], &ap->bssid [3 ], &ap->bssid [4 ], &ap->bssid [5 ],
992
- &ap->channel ,
993
- &dummy,
994
- &dummy);
988
+ &sec,
989
+ ap->ssid ,
990
+ &ap->rssi ,
991
+ &ap->bssid [0 ], &ap->bssid [1 ], &ap->bssid [2 ], &ap->bssid [3 ], &ap->bssid [4 ], &ap->bssid [5 ],
992
+ &ap->channel ,
993
+ &dummy,
994
+ &dummy);
995
995
996
996
}
997
997
0 commit comments