Weather control switch for connected day. NXP LPC 1768 module. Ethernet connectivity.
Dependencies: EthernetInterface mbed-rtos mbed nanoservice_client_1_12
Fork of Trenton_Switch_LPC1768_WIFLY by
Diff: main.cpp
- Revision:
- 25:cb16c5248769
- Parent:
- 22:b361f7ae0508
- Child:
- 26:3467812d5832
diff -r 81c04180090c -r cb16c5248769 main.cpp --- a/main.cpp Tue Sep 09 14:32:19 2014 +0000 +++ b/main.cpp Wed Dec 03 09:03:29 2014 +0000 @@ -17,8 +17,10 @@ #include "EthernetInterface.h" #include "main.h" #include "nsdl_support.h" +#include "sensor_ctl.h" #include "switch.h" + //Serial pc(USBTX, USBRX); // **************************************************************************** @@ -190,8 +192,10 @@ n = 0; } + //Check if need to send pressure mat update... - switch_report(); + handle_microphone_sample_timer(); + //NSDL Tick if(nsdlTickTimer.read() >= NSDL_TICK_PERIOD) { @@ -216,6 +220,7 @@ } + /** * \param none * \return int