Door controller and proximity switch detection.

Dependencies:   mbed-rtos mbed VodafoneUSBModem_bleedingedge

This program takes in a digital input - which is a reed switch for a door - and an output to a relay. The door is open with a simple 'text' to the modem on the USB bus (i used k3770 vodafone dongle).

The door will send an alarm message to your nominated numbers at the start of the program if the door is open without a command being sent.

Very simple - and just meant as a demonstration of how to incorporate GSM/3G functionality to a evice.

Revision:
1:3c9d0c9dffa4
Parent:
0:5136cdfaebd0
Child:
2:bcc9256ecaab
--- a/main.cpp	Tue May 15 13:18:31 2012 +0000
+++ b/main.cpp	Tue May 15 13:38:57 2012 +0000
@@ -47,7 +47,7 @@
 void test(void const*) {
   VodafoneK3770 threeg;
 
-  DBG("Hello!");
+  DBG("Hello world and Vodafone K3770 test program!");
     
   threeg.sendSM(MY_PHONE_NUMBER, "Hello from mbed:)");