Sensos Module Updated
Fork of Middleware by
Ether.h@1:fd355dc296b1, 2015-12-09 (annotated)
- Committer:
- RoHe
- Date:
- Wed Dec 09 04:44:37 2015 +0000
- Revision:
- 1:fd355dc296b1
- Parent:
- 0:d1ff330c5128
ok
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RoHe | 0:d1ff330c5128 | 1 | /* |
RoHe | 0:d1ff330c5128 | 2 | Ether.h |
RoHe | 0:d1ff330c5128 | 3 | |
RoHe | 0:d1ff330c5128 | 4 | Only to improve the clarity of main .cpp |
RoHe | 0:d1ff330c5128 | 5 | This don't have any new classes |
RoHe | 0:d1ff330c5128 | 6 | |
RoHe | 0:d1ff330c5128 | 7 | All Ehternet Aplication |
RoHe | 0:d1ff330c5128 | 8 | for Smart Room project asked by |
RoHe | 0:d1ff330c5128 | 9 | Gustavo Torres |
RoHe | 0:d1ff330c5128 | 10 | |
RoHe | 0:d1ff330c5128 | 11 | Last update by RoHe 16/11/2015 |
RoHe | 0:d1ff330c5128 | 12 | |
RoHe | 0:d1ff330c5128 | 13 | */ |
RoHe | 0:d1ff330c5128 | 14 | |
RoHe | 0:d1ff330c5128 | 15 | //const char* ECHO_SERVER_ADDRESS = "192.168.74.1"; |
RoHe | 0:d1ff330c5128 | 16 | //const int ECHO_SERVER_PORT = 7; |
RoHe | 0:d1ff330c5128 | 17 | |
RoHe | 0:d1ff330c5128 | 18 | |
RoHe | 0:d1ff330c5128 | 19 | |
RoHe | 0:d1ff330c5128 | 20 | #ifndef ETHER_H_ |
RoHe | 0:d1ff330c5128 | 21 | #define ETHER_H_ |
RoHe | 0:d1ff330c5128 | 22 | |
RoHe | 0:d1ff330c5128 | 23 | //#include "EthernetInterface.h" |
RoHe | 0:d1ff330c5128 | 24 | //#include "Initial.h" |
RoHe | 0:d1ff330c5128 | 25 | |
RoHe | 0:d1ff330c5128 | 26 | static const char* ECHO_SERVER_ADDRESS1= "192.168.1.83"; |
RoHe | 1:fd355dc296b1 | 27 | static const int ECHO_SERVER_PORT1 = 4010; |
RoHe | 0:d1ff330c5128 | 28 | static bool _isConnectedServer1= false; |
RoHe | 0:d1ff330c5128 | 29 | |
RoHe | 0:d1ff330c5128 | 30 | |
RoHe | 0:d1ff330c5128 | 31 | static const char* ECHO_SERVER_ADDRESS2= "192.168.1.80"; |
RoHe | 0:d1ff330c5128 | 32 | static const int ECHO_SERVER_PORT2 = 7; |
RoHe | 0:d1ff330c5128 | 33 | static bool _isConnectedServer2= false; |
RoHe | 0:d1ff330c5128 | 34 | |
RoHe | 0:d1ff330c5128 | 35 | // Receive message from server1 |
RoHe | 0:d1ff330c5128 | 36 | static char buf1[256]; |
RoHe | 0:d1ff330c5128 | 37 | static int n1; |
RoHe | 0:d1ff330c5128 | 38 | |
RoHe | 0:d1ff330c5128 | 39 | // Receive message from server2 |
RoHe | 0:d1ff330c5128 | 40 | static char buf2[256]; |
RoHe | 0:d1ff330c5128 | 41 | static int n2; |
RoHe | 0:d1ff330c5128 | 42 | |
RoHe | 0:d1ff330c5128 | 43 | |
RoHe | 0:d1ff330c5128 | 44 | #endif |