Skip to content

Commit

Permalink
Merge branch 'master' of github.com:adafruit/Adafruit_FONA_Library
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Jan 22, 2016
2 parents 32b146e + 01895cb commit 90c2ebf
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Adafruit_FONA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1152,11 +1152,11 @@ boolean Adafruit_FONA::enableGPRS(boolean onoff) {
mySerial->print(F("AT+CSTT=\""));
mySerial->print(apn);
if (apnusername) {
mySerial->println("\",\"");
mySerial->print("\",\"");
mySerial->print(apnusername);
}
if (apnpassword) {
mySerial->println("\",\"");
mySerial->print("\",\"");
mySerial->print(apnpassword);
}
mySerial->println("\"");
Expand All @@ -1174,13 +1174,8 @@ boolean Adafruit_FONA::enableGPRS(boolean onoff) {
}
DEBUG_PRINTLN("\"");

uint8_t l = readline(2000);
DEBUG_PRINT("\t<---"); DEBUG_PRINTLN(replybuffer);
return (prog_char_strcmp(replybuffer, (prog_char*)ok_reply) == 0);

if (! sendCheckReplyQuoted(F("AT+CSTT="), apn, ok_reply, 10000))
return false;

if (! expectReply(ok_reply)) return false;

// set username/password
if (apnusername) {
// Send command AT+SAPBR=3,1,"USER","<user>" where <user> is the configured APN username.
Expand Down

0 comments on commit 90c2ebf

Please sign in to comment.