Skip to content

Commit

Permalink
Merge pull request #15 from WolfRorDev/main
Browse files Browse the repository at this point in the history
Fix sendSMS function
  • Loading branch information
aliphys authored Jun 13, 2024
2 parents 34c49f4 + 740c109 commit 6883351
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ArduinoCellular.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ Time ArduinoCellular::getCellularTime(){


void ArduinoCellular::sendSMS(String number, String message){
modem.sendAT("+CMGF=1");
modem.waitResponse(1000);
modem.sendAT(GF("+CMGS=\""), number, GF("\""));
if (modem.waitResponse(GF(">")) != 1) { }
modem.stream->print(message); // Actually send the message
Expand Down

0 comments on commit 6883351

Please sign in to comment.