uploads and communicates over serial

This commit is contained in:
Brendan Haines 2016-11-29 21:15:27 -07:00
parent eb947bff8c
commit 0e6bf815ca

View File

@ -105,10 +105,10 @@ void setup() {
digitalWrite( GSM_RST, HIGH ); digitalWrite( GSM_RST, HIGH );
digitalWrite( CHG_PIN, HIGH ); digitalWrite( CHG_PIN, HIGH );
digitalWrite( LED_NO_SERVICE, LOW ); fonaSerial->begin(4800);
fonaSerial->begin(115200);
if (! fona.begin(*fonaSerial)) { if (! fona.begin(*fonaSerial)) {
while (1); //fona didn't start while (1); //fona didn't start
digitalWrite( LED_BAT_LOW, HIGH );
} }
//while ( !fona.setAudio(FONA_EXTAUDIO) ) {} //while ( !fona.setAudio(FONA_EXTAUDIO) ) {}
@ -118,6 +118,8 @@ void setup() {
digitalWrite( LED_BAT_LOW, LOW ); digitalWrite( LED_BAT_LOW, LOW );
fona.sendCheckReply( F("AT+CLVL=20"), F("OK") ); // set dialtone volume fona.sendCheckReply( F("AT+CLVL=20"), F("OK") ); // set dialtone volume
digitalWrite( LED_BAT_LOW, LOW );
digitalWrite( LED_NO_SERVICE, LOW );
} }
void loop() { void loop() {