Updated Sensors Module. Added person counter.
Dependencies: EthernetInterface HC_SR04_Ultrasonic_Library Middleware mbed-rtos mbed
Fork of SmartLabProyect by
Revision 3:4f60a40516dd, committed 2015-12-10
- Comitter:
- Jorge_Beltran
- Date:
- Thu Dec 10 02:32:50 2015 +0000
- Parent:
- 2:c8a2aa07cfdd
- Child:
- 4:7b42af8be2cd
- Commit message:
- SmartLabProyect
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HC_SR04_Ultrasonic_Library.lib Thu Dec 10 02:32:50 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/ejteb/code/HC_SR04_Ultrasonic_Library/#e0f9c9fb4cf3
--- a/Middleware.lib Wed Dec 09 04:50:35 2015 +0000 +++ b/Middleware.lib Thu Dec 10 02:32:50 2015 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/RoHe/code/Middleware/#a56763667f20 +https://developer.mbed.org/users/Jorge_Beltran/code/Middleware/#1704050210b5
--- a/main.cpp Wed Dec 09 04:50:35 2015 +0000
+++ b/main.cpp Thu Dec 10 02:32:50 2015 +0000
@@ -1,9 +1,9 @@
/*
-
+
Main.cpp
-
+
Last update by RoHe 16/11/2015
-
+
*/
#include <string.h>
#include "mbed.h"
@@ -15,12 +15,15 @@
#include "Threads.cpp"
#include "StringManager.h"
-
+/*PERSON COUNTER VARIABLE*/
+unsigned int PersonNumber = 0;
+
int main()
{
/*////////////////////////////////////
Initialization of the outports
-
+
+
Comments:
-Inicialize all the output in zero
-It has Pull - up
@@ -28,29 +31,29 @@
ledRED=1; // it has pull-up
ledGREEN=1;
ledBLUE=1;
-
-
+
+
/*////////////////////////////////////
SET Initial configuration and welcome message
*/
pc.baud(115200);
pc.printf("Hello World from TCP Client-Server RoHE Main TASK GUS integrate YORCH1.\n\r");
-
-
+
+
/*//////////////////////////////////
Declares all necessary CLASSES
*/
eth.init(); //Use DHCP
eth.connect();
-
+
serverTCP.bind(ECHO_SERVER_PORT1);
serverTCP.listen();
-
+
/*////////////////////////////////////
Declares all necessary INTERRUPTIONS
*/
sw2.fall(&sw2_press);
-
+
//////////////////////////////////////////////////////APPLICATION /////////////////////////////////////////////////////////
pc.printf("Server IP Address is %s\r", eth.getIPAddress());
@@ -82,8 +85,8 @@
-ROBER: manejo de string y como manejar las pruebas de fallos
*/
while(true) {
-
+ PersonNumber = GetPersonStatus();
}// END while
//eth.disconnect();
-}
+}
\ No newline at end of file
--- a/mbed-rtos.lib Wed Dec 09 04:50:35 2015 +0000 +++ b/mbed-rtos.lib Thu Dec 10 02:32:50 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed-rtos/#6d90423c236e +http://mbed.org/users/mbed_official/code/mbed-rtos/#c825593ece39
--- a/mbed.bld Wed Dec 09 04:50:35 2015 +0000 +++ b/mbed.bld Thu Dec 10 02:32:50 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/165afa46840b \ No newline at end of file
