GSwifiInterface library (interface for GainSpan Wi-Fi GS1011 modules) Please see https://mbed.org/users/gsfan/notebook/GSwifiInterface/

Dependents:   GSwifiInterface_HelloWorld GSwifiInterface_HelloServo GSwifiInterface_UDPEchoServer GSwifiInterface_UDPEchoClient ... more

Fork of WiflyInterface by mbed official

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GSwifi_conf.h Source File

GSwifi_conf.h

00001 
00002 //#define DEBUG
00003 //#define DEBUG_DUMP
00004 
00005 #define CFG_ENABLE_RTOS
00006 //#define CFG_ENABLE_HTTPD
00007 //#define CFG_ENABLE_WEBSOCKET
00008 //#define CFG_ENABLE_SMTP
00009 //#define CFG_UART_DIRECT
00010 //#define CFG_SPI_DATAINTERFACE // GS2100 s2w (Serial to Wi-Fi, UART Command and SPI Data)
00011 
00012 #define CFG_UART_BAUD 9600
00013 #define CFG_WREGDOMAIN 2 // 0:FCC, 1:ETSI, 2:TELEC
00014 #define CFG_DHCPNAME "mbed-gswifi"
00015 #define CFG_DNSNAME "setup.local"
00016 #define CFG_TRYJOIN 3
00017 #define CFG_RECONNECT 30 // sec
00018 #define CFG_MAX_SOCKETS 8 // max 16
00019 
00020 #define DEFAULT_WAIT_RESP_TIMEOUT 500
00021 #define CFG_TIMEOUT 30000 // ms
00022 
00023 #define CFG_CMD_SIZE 128
00024 
00025 #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC176X)
00026 #define CFG_DATA_SIZE 1500
00027 #elif defined(TARGET_LPC11U24) || defined(TARGET_LPC1114) || defined(TARGET_LPC11UXX) || defined(TARGET_LPC11XX)
00028 #define CFG_DATA_SIZE 256
00029 #elif defined(TARGET_LPC812) || defined(TARGET_LPC81X)
00030 #define CFG_DATA_SIZE 128
00031 #elif defined(TARGET_LPC4088) || defined(TARGET_LPC408X)
00032 #define CFG_DATA_SIZE 1500
00033 #elif defined(TARGET_KL25Z)
00034 #define CFG_DATA_SIZE 512
00035 #endif
00036 /*
00037 #if defined(TARGET_LPC1768) || defined(TARGET_LPC176X)
00038 #define CFG_EXTENDED_MEMORY1 0x2007c000
00039 #define CFG_EXTENDED_SIZE1 0x4000
00040 #define CFG_EXTENDED_MEMORY2 0x20082000
00041 #define CFG_EXTENDED_SIZE2 0x2000
00042 #endif
00043 */
00044 #define CFG_HTTPD_HANDLER_NUM 10
00045 #define CFG_HTTPD_KEEPALIVE 10