Skip to content

Commit

Permalink
Ensure 7080's netlight is on
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Damiano <[email protected]>
  • Loading branch information
SRGDamia1 committed May 23, 2024
1 parent feac5b5 commit 0cae7cb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/modems/SIMComSIM7080.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ bool SIMComSIM7080::extraModemSetup(void) {
// problems by maxing out the send buffer size. This size should accommodate
// a completely full 8K LogBuffer and a crappy connection.
gsmModem.sendAT(F("+CACFG=\"SNDBUF\",29200"));
gsmModem.waitResponse();

// Enable the netlight indicator
gsmModem.sendAT(F("+CNETLIGHT=1"));
gsmModem.waitResponse();
// Enable netlight indication of GPRS status
// Enable, the netlight will be forced to enter into 64ms on/300ms off
// blinking state in GPRS data transmission service.Otherwise, the netlight
// state is not restricted.
gsmModem.sendAT(F("+CNETLIGHT=1"));
gsmModem.waitResponse();

// Enable the battery check functionality
gsmModem.sendAT(F("+CBATCHK=1"));
gsmModem.waitResponse();

return success;
}
Expand Down

0 comments on commit 0cae7cb

Please sign in to comment.