Skip to content

Commit

Permalink
A7670 const String
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed May 15, 2024
1 parent 87a1830 commit 3cef467
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/A7670_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
}
}

bool checkATResponse(String ATMessage) {
bool checkATResponse(const String& ATMessage) {
int delayATMessage = 3000;
bool validAT = false;
//Serial.println(ATMessage);
Expand Down Expand Up @@ -170,7 +170,7 @@
}
}

void uploadToAPRSIS(String packet) {
void uploadToAPRSIS(const String& packet) {
beaconBytesSended = checkATResponse("AT+CIPSEND=0," + String(packet.length()+1));
delay(2000);
if (beaconBytesSended) {
Expand Down
4 changes: 2 additions & 2 deletions src/A7670_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ namespace A7670_Utils {

bool checkModemOn();
void setup();
bool checkATResponse(String ATMessage);
bool checkATResponse(const String& ATMessage);
void APRS_IS_connect();
void uploadToAPRSIS(String packet);
void uploadToAPRSIS(const String& packet);
void listenAPRSIS();

}
Expand Down

0 comments on commit 3cef467

Please sign in to comment.