![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
server/client
Dependencies: mbed NetServicesMin
Diff: config.h
- Revision:
- 1:6e61ee662fd3
- Parent:
- 0:432b571e11a3
--- a/config.h Sun Feb 19 06:21:50 2012 +0000 +++ b/config.h Thu Feb 23 02:38:05 2012 +0000 @@ -1,14 +1,41 @@ #ifndef _CONFIG_ #define _CONFIG_ +#include "mbed.h" -#define kSserverIp 192,168,0,111 +//comentout -> nomal(do not debug printf) +//#define DEBUG + +//standalone -> mbed ether echo back mode +//#define _SERVER_TEST_MODE_ + +#ifdef DEBUG +#define DBGV(fmt, ...) printf(fmt, __VA_ARGS__) +#define DBGF(X) printf(X); +#else +#define DBGV(...) +#define DBGF(...) +#endif + +//mbed server.client +#define kSserverIp 192,168,0,111 #define kSubnetMask 255,255,255,0 -#define kRouterIp 192,168,0,1 +#define kRouterIp 192,168,0,1 #define kServerPort 12345 -#define kClientIp 192,168,0,2 +//iPad +#define kClientIp 192,168,0,2 #define kClientPort 12346 +#define kXBeeNo0DL 0x4086B0D5 //mbed server.client +#define kXBeeNo1DL 0x4086AFDE //sender +#define kXBeeNo2DL 0x4086AFEA //reciever + +#define kLedSender kXBeeNo1DL +#define kLedReciever kXBeeNo2DL + + + + typedef enum{ close, connecting,