Shutdown SIM800L with board (if defined)
Signed-off-by: Martin Kolací <martin.kolaci@lmc.eu>
This commit is contained in:
@@ -36,6 +36,13 @@ void BoardInterface::shutdownDevice() {
|
|||||||
displayMessage("Shutdown in 3 sec.", "");
|
displayMessage("Shutdown in 3 sec.", "");
|
||||||
delay(3000);
|
delay(3000);
|
||||||
|
|
||||||
|
#ifdef SIM800L_ENABLED
|
||||||
|
if(sim800l->isConnectedGPRS()) {
|
||||||
|
sim800l->disconnectGPRS();
|
||||||
|
}
|
||||||
|
sim800l->setPowerMode(MINIMUM);
|
||||||
|
#endif //SIM800L_ENABLED
|
||||||
|
|
||||||
setCpuFrequencyMhz(80);
|
setCpuFrequencyMhz(80);
|
||||||
setBrightness(0);
|
setBrightness(0);
|
||||||
//WiFi.disconnect(true);
|
//WiFi.disconnect(true);
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
- TinyGPSPlus (m5stack GPS)
|
- TinyGPSPlus (m5stack GPS)
|
||||||
|
|
||||||
SIM800L m5stack (https://github.com/kolaCZek)
|
SIM800L m5stack (https://github.com/kolaCZek)
|
||||||
- SIM800L.h, SoftwareSerial.h
|
- SIM800L.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user