see http://mbed.org/users/okini3939/notebook/wattmeter-shield-on-mbed/
Fork of GSwifi_xively by
GSwifiInterface/GSwifi/GSwifi_conf.h@4:9a2415f2ab07, 2013-11-27 (annotated)
- Committer:
- okini3939
- Date:
- Wed Nov 27 08:18:45 2013 +0000
- Revision:
- 4:9a2415f2ab07
update GSwifiInterface library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
okini3939 | 4:9a2415f2ab07 | 1 | |
okini3939 | 4:9a2415f2ab07 | 2 | //#define DEBUG |
okini3939 | 4:9a2415f2ab07 | 3 | //#define DEBUG_DUMP |
okini3939 | 4:9a2415f2ab07 | 4 | |
okini3939 | 4:9a2415f2ab07 | 5 | //#define CFG_ENABLE_RTOS |
okini3939 | 4:9a2415f2ab07 | 6 | //#define CFG_ENABLE_HTTPD |
okini3939 | 4:9a2415f2ab07 | 7 | //#define CFG_ENABLE_WEBSOCKET |
okini3939 | 4:9a2415f2ab07 | 8 | //#define CFG_ENABLE_SMTP |
okini3939 | 4:9a2415f2ab07 | 9 | //#define CFG_UART_DIRECT |
okini3939 | 4:9a2415f2ab07 | 10 | |
okini3939 | 4:9a2415f2ab07 | 11 | #define CFG_UART_BAUD 9600 |
okini3939 | 4:9a2415f2ab07 | 12 | #define CFG_WREGDOMAIN 2 // 0:FCC, 1:ETSI, 2:TELEC |
okini3939 | 4:9a2415f2ab07 | 13 | #define CFG_DHCPNAME "mbed-gswifi" |
okini3939 | 4:9a2415f2ab07 | 14 | #define CFG_DNSNAME "setup.local" |
okini3939 | 4:9a2415f2ab07 | 15 | #define CFG_TRYJOIN 3 |
okini3939 | 4:9a2415f2ab07 | 16 | #define CFG_RECONNECT 30 // sec |
okini3939 | 4:9a2415f2ab07 | 17 | |
okini3939 | 4:9a2415f2ab07 | 18 | #define DEFAULT_WAIT_RESP_TIMEOUT 500 |
okini3939 | 4:9a2415f2ab07 | 19 | #define CFG_TIMEOUT 30000 // ms |
okini3939 | 4:9a2415f2ab07 | 20 | |
okini3939 | 4:9a2415f2ab07 | 21 | #define CFG_CMD_SIZE 128 |
okini3939 | 4:9a2415f2ab07 | 22 | |
okini3939 | 4:9a2415f2ab07 | 23 | #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC176X) |
okini3939 | 4:9a2415f2ab07 | 24 | #define CFG_DATA_SIZE 1024 |
okini3939 | 4:9a2415f2ab07 | 25 | #elif defined(TARGET_LPC11U24) || defined(TARGET_LPC1114) || defined(TARGET_LPC11XX) |
okini3939 | 4:9a2415f2ab07 | 26 | #define CFG_DATA_SIZE 256 |
okini3939 | 4:9a2415f2ab07 | 27 | #elif defined(TARGET_LPC4088) || defined(TARGET_LPC408X) |
okini3939 | 4:9a2415f2ab07 | 28 | #define CFG_DATA_SIZE 4096 |
okini3939 | 4:9a2415f2ab07 | 29 | #elif defined(TARGET_KL25Z) |
okini3939 | 4:9a2415f2ab07 | 30 | #define CFG_DATA_SIZE 512 |
okini3939 | 4:9a2415f2ab07 | 31 | #endif |
okini3939 | 4:9a2415f2ab07 | 32 | |
okini3939 | 4:9a2415f2ab07 | 33 | #define CFG_HTTPD_HANDLER_NUM 10 |
okini3939 | 4:9a2415f2ab07 | 34 | #define CFG_HTTPD_KEEPALIVE 10 |