Skip to content

Commit

Permalink
add quotes on AT+UPING command
Browse files Browse the repository at this point in the history
  • Loading branch information
rickkas7 committed Jul 7, 2017
1 parent d71bfd3 commit e3cadc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions electronsample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ void smartReboot(int reason, bool forceResetModem) {
// help log the current state for debugging purposes.
// It returns true to force a modem reset immediately, false to use the normal logic for whether to reset the modem.
bool cloudConnectDebug() {
int res = Cellular.command(PING_TIMEOUT, "AT+UPING=8.8.8.8\r\n");
int res = Cellular.command(PING_TIMEOUT, "AT+UPING=\"8.8.8.8\"\r\n");
connectionEventAdd(CONNECTION_EVENT_PING_DNS, res);

res = Cellular.command(PING_TIMEOUT, "AT+UPING=api.particle.io\r\n");
res = Cellular.command(PING_TIMEOUT, "AT+UPING=\"api.particle.io\"\r\n");
connectionEventAdd(CONNECTION_EVENT_PING_API, res);

// If pinging api.particle.io does not succeed, then reboot the modem right away
Expand Down

0 comments on commit e3cadc7

Please sign in to comment.