![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
server/client
Dependencies: mbed NetServicesMin
Diff: net_routing.cpp
- Revision:
- 1:6e61ee662fd3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net_routing.cpp Thu Feb 23 02:38:05 2012 +0000 @@ -0,0 +1,38 @@ +#include "net_routing.h" +#include "types.h" +#include "config.h" +#include "xbee_lib.h" +#include "tcp_client.h" + +void netRouting(Payload *_payload) +{ + + + #ifdef _SERVER_TEST_MODE_ + tcpSendPayload(_payload); + + #else + + uint32_t xbeeAdr=0; + + switch(_payload->message.device) + { + case LED_SENDER: + { + xbeeAdr = kLedSender; + break; + } + + case LED_RECIEVER: + { + xbeeAdr = kLedReciever; + break; + } + + } + + + xbeeSend(xbeeAdr,_payload); + #endif + +} \ No newline at end of file