![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
UDPversion
Dependencies: XBee mbed NetServicesMin
config.h
- Committer:
- recotana
- Date:
- 2012-04-15
- Revision:
- 1:3a46d2725374
- Parent:
- 0:84a3b029656e
File content as of revision 1:3a46d2725374:
#ifndef _CONFIG_ #define _CONFIG_ #include "mbed.h" //#define _SERVER_TEST_MODE_ //#define DEBUG #ifdef DEBUG #define DBGV(fmt, ...) pc.printf(fmt, __VA_ARGS__) #define DBGF(X) pc.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 kServerPort 12345 //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 kDeviceServer kXBeeNo0DL #define kLedSender kXBeeNo1DL #define kLedReciever kXBeeNo2DL #define kMyXBeeAddress kDeviceServer #define kXBeeBoudRate 115200 #define kiPadServerCheckInterval 10 #define kHealthCheckiPad 0xF0 //health check command #define kHealthCheckmbed 0xF1 //health check command typedef enum{ close, connecting, connected } ConnectStatus; #endif