MultiTech
/
Dragonfly_Cellular_SMS_Example
Send and receive SMS messages using the onboard cellular radio.
Diff: main.cpp
- Revision:
- 2:6d830bd5d1c9
- Parent:
- 1:fb975e637cc1
--- a/main.cpp Wed Sep 30 16:22:21 2015 +0000 +++ b/main.cpp Fri Feb 26 16:49:24 2016 +0000 @@ -10,6 +10,11 @@ #include <vector> #include <iterator> +// This line controls the regulator's battery charger. +// BC_NCE = 0 enables the battery charger +// BC_NCE = 1 disables the battery charger +DigitalOut bc_nce(PB_2); + bool init_mtsas(); // The MTSSerialFlowControl object represents the physical serial link between the processor and the cellular radio. @@ -27,6 +32,9 @@ bool radio_ok = false; int main() { + // Disable the battery charger unless a battery is attached. + bc_nce = 1; + // Change the baud rate of the debug port from the default 9600 to 115200. Serial debug(USBTX, USBRX); debug.baud(115200);