Skip to content

Commit 6186c6d

Browse files
committed
Implemented soft reset of Wifi in modem begin
Former-commit-id: 7548449
1 parent f444682 commit 6186c6d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

libraries/WiFiS3/src/Modem.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ ModemClass::~ModemClass() {
2828
void ModemClass::begin(int badurate){
2929
/* -------------------------------------------------------------------------- */
3030
if(_serial != nullptr && !beginned) {
31-
_serial->begin(badurate);
32-
beginned = true;
31+
_serial->begin(badurate);
32+
beginned = true;
33+
string res = "";
34+
modem.write(string(PROMPT(_SOFTRESETWIFI)),res, "%s" , CMD(_SOFTRESETWIFI));
3335
}
3436
}
3537

libraries/WiFiS3/src/Modem.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define _MODEM_WIFIS3_H_
33

44
#include "Arduino.h"
5+
#include "WiFiCommands.h"
56
#include "StringHelpers.h"
67

78

libraries/WiFiS3/src/WiFiClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "Print.h"
2525
#include "Client.h"
2626
#include "IPAddress.h"
27-
#include "WiFiCommands.h"
27+
2828
#include "WiFiTypes.h"
2929
#include "Modem.h"
3030
#include "FifoBuffer.h"

0 commit comments

Comments
 (0)