Does HTTP GET and POST requests using the onboard cellular radio.

Dependencies:   mbed mtsas

Files at this revision

API Documentation at this revision

Comitter:
mfiore
Date:
Fri Feb 26 16:43:39 2016 +0000
Parent:
0:093d58465743
Commit message:
Updated mbed library to revision 112, disable regulator's battery charger

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 093d58465743 -r 85048c56310d main.cpp
--- a/main.cpp	Wed Sep 30 17:45:15 2015 +0000
+++ b/main.cpp	Fri Feb 26 16:43:39 2016 +0000
@@ -7,6 +7,11 @@
 #include "mbed.h"
 #include "mtsas.h"
 
+// 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();
 char* httpResToStr(HTTPResult res);
 
@@ -21,6 +26,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);
diff -r 093d58465743 -r 85048c56310d mbed.bld
--- a/mbed.bld	Wed Sep 30 17:45:15 2015 +0000
+++ b/mbed.bld	Fri Feb 26 16:43:39 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/4f6c30876dfa
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/6f327212ef96
\ No newline at end of file