mbed Sensor node for Instrumented Booth over ETH.
Dependencies: EthernetInterface-1 MaxbotixDriver Presence HTU21D_TEMP_HUMID_SENSOR_SAMPLE Resources SHARPIR mbed-rtos mbed-src WDT_K64F nsdl_lib
Fork of Trenton_Switch_LPC1768_ETH by
Diff: main.cpp
- Revision:
- 25:cb16c5248769
- Parent:
- 22:b361f7ae0508
- Child:
- 26:4cac6b346e4f
--- 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