Skip to content

Commit

Permalink
Update uartWIFI.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Architecting committed Nov 25, 2014
1 parent 9d482cf commit 0c8e859
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions uartWIFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,15 @@ bool wifiPresent; //track is wifi card is present
bool WIFI::begin(void)
{
boolean result = false;
#if 0
_cell.begin(115200); //The default baud rate of ESP8266 is 115200
#else
_cell.begin(9600); //For new firmware
#endif

_cell.begin(9600);

DebugSerial.begin(debugBaudRate);

_cell.flush();
#if 0
_cell.setTimeout(3000);
#else
_cell.setTimeout(10000); // For new firmware
#endif

_cell.setTimeout(10000);

println(F("AT+RST"));
result = _cell.find("ready");
if(result)
Expand Down

0 comments on commit 0c8e859

Please sign in to comment.