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:
14:9ee94196b75d
Parent:
12:e622e146b3cd
Child:
18:ad4ae0caf337
Child:
20:27f878df6d14
--- a/main.cpp	Thu Sep 20 08:05:18 2012 +0000
+++ b/main.cpp	Tue Sep 25 14:57:07 2012 +0000
@@ -170,7 +170,7 @@
   DBG_SET_SPEED(115200);
 
   Thread testTask(test, NULL, osPriorityNormal, 1024*5);
-  // keepAlive(NULL);
+  keepAlive(NULL);
 
     
     return 0;