#include <GsmPower.h>
Public Member Functions | |
| MyGsmPower (MyData &data, int pin) | |
| bool | begin () |
| void | on () |
| void | off () |
Protected Attributes | |
| MyData & | myData |
| Reference to the data. | |
| int | pinPower |
| esp8266 pin connected with pin 5 of the LM2596 modul. | |
| long | powerOnStartSec |
| Timestamp of power on. | |
Class to switch on/off the DC-DC modul LM2596.
Definition at line 27 of file GsmPower.h.
| MyGsmPower::MyGsmPower | ( | MyData & | data, |
| int | pin | ||
| ) |
Constructor
Definition at line 47 of file GsmPower.h.
| bool MyGsmPower::begin | ( | ) |
Set the pin mode to input -> switch off the DC-DC module
Definition at line 55 of file GsmPower.h.
References MyDbg(), and pinPower.
Referenced by setup().
| void MyGsmPower::off | ( | ) |
Switch off the DC-DC module
Definition at line 74 of file GsmPower.h.
References MyData::isPowerOn, myData, MyDbg(), pinPower, powerOnStartSec, MyData::RtcData::powerOnTimeSec, and MyData::rtcData.
Referenced by loop().
| void MyGsmPower::on | ( | ) |
Switch on the DC-DC module
Definition at line 63 of file GsmPower.h.
References MyData::isPowerOn, myData, MyDbg(), MyDelay(), pinPower, and powerOnStartSec.
Referenced by loop().
1.8.6