Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: GMMP_mbed NTPClient SNICInterface mbed-rtos mbed
Fork of ThingPlug_WiFi_Example2 by
config.h@0:fdbd2c6947ea, 2015-08-09 (annotated)
- Committer:
- lesmin
- Date:
- Sun Aug 09 14:24:15 2015 +0000
- Revision:
- 0:fdbd2c6947ea
- Child:
- 1:468ac9167975
ThingPlug_WiFi_Example_2
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| lesmin | 0:fdbd2c6947ea | 1 | #ifndef CONFIG_H_ |
| lesmin | 0:fdbd2c6947ea | 2 | #define CONFIG_H_ |
| lesmin | 0:fdbd2c6947ea | 3 | |
| lesmin | 0:fdbd2c6947ea | 4 | /* |
| lesmin | 0:fdbd2c6947ea | 5 | * Communication Module configuration starts here |
| lesmin | 0:fdbd2c6947ea | 6 | */ |
| lesmin | 0:fdbd2c6947ea | 7 | #define USE_SNIC_WIFI //Murata Type YD Wi-Fi |
| lesmin | 0:fdbd2c6947ea | 8 | //#define USE_WIZNET_W5500 |
| lesmin | 0:fdbd2c6947ea | 9 | |
| lesmin | 0:fdbd2c6947ea | 10 | |
| lesmin | 0:fdbd2c6947ea | 11 | /* |
| lesmin | 0:fdbd2c6947ea | 12 | * SNIC configuration starts here |
| lesmin | 0:fdbd2c6947ea | 13 | */ |
| lesmin | 0:fdbd2c6947ea | 14 | #ifdef USE_SNIC_WIFI |
| lesmin | 0:fdbd2c6947ea | 15 | |
| lesmin | 0:fdbd2c6947ea | 16 | #define MBED_AP_SSID "FON"//"TIDE867"//"tide855" |
| lesmin | 0:fdbd2c6947ea | 17 | /** Securiry Options |
| lesmin | 0:fdbd2c6947ea | 18 | e_SEC_OPEN = 0x00, //Open |
| lesmin | 0:fdbd2c6947ea | 19 | e_SEC_WEP = 0x01, // WEP |
| lesmin | 0:fdbd2c6947ea | 20 | e_SEC_WPA_TKIP = 0x02, // WPA-PSK(TKIP) |
| lesmin | 0:fdbd2c6947ea | 21 | e_SEC_WPA2_AES = 0x04, // WPA2-PSK(AES) |
| lesmin | 0:fdbd2c6947ea | 22 | e_SEC_WPA2_MIXED = 0x06, // WPA2-PSK(TKIP/AES) |
| lesmin | 0:fdbd2c6947ea | 23 | e_SEC_WPA_AES = 0x07 // WPA-PSK(AES) **/ |
| lesmin | 0:fdbd2c6947ea | 24 | #define MBED_AP_SECURITY_TYPE e_SEC_OPEN//e_SEC_WPA2_AES//e_SEC_OPEN |
| lesmin | 0:fdbd2c6947ea | 25 | #define MBED_AP_SECUTIRY_KEY ""//"tidetide" |
| lesmin | 0:fdbd2c6947ea | 26 | //unsigned char g_mac[] = {0x98, 0xF1, 0x70, 0x67, 0x4D, 0xC3}; //MURATA WIFI |
| lesmin | 0:fdbd2c6947ea | 27 | |
| lesmin | 0:fdbd2c6947ea | 28 | #endif//USE_SNIC_WIFI |
| lesmin | 0:fdbd2c6947ea | 29 | |
| lesmin | 0:fdbd2c6947ea | 30 | // Some Ethernet Shields (ex.W5500) do NOT have MAC address. use your cell phone number instead. |
| lesmin | 0:fdbd2c6947ea | 31 | // 010-1234-5678 -> {0x00, 0x10, 0x12, 0x34, 0x56, 0x78}; |
| lesmin | 0:fdbd2c6947ea | 32 | #define DEFAULT_MAC_ADDR {0x00, 0x10, 0x12, 0x34, 0x56, 0x78} //MAC Address |
| lesmin | 0:fdbd2c6947ea | 33 | |
| lesmin | 0:fdbd2c6947ea | 34 | /* |
| lesmin | 0:fdbd2c6947ea | 35 | * GMMP configuration starts here |
| lesmin | 0:fdbd2c6947ea | 36 | */ |
| lesmin | 0:fdbd2c6947ea | 37 | #define THINGPLUG_GMMP_IP_ADDR {61, 250, 21, 211} //ThingPlug GMMP 서버 IP주소 |
| lesmin | 0:fdbd2c6947ea | 38 | #define THINGPLUG_GMMP_PORT_NUM 31002 //마이페이지 > 서비스 정보 수정 > 서비스 기본 정보 > TCP Listen Port |
| lesmin | 0:fdbd2c6947ea | 39 | #define THINGPLUG_GMMP_SERVICE_NAME "ThingPlug" //마이페이지 > 서비스 정보 수정 > 서비스 기본 정보 > 서비스 아이디 |
| lesmin | 0:fdbd2c6947ea | 40 | //unsigned char serverIp[] = {61, 250, 21, 211}; |
| lesmin | 0:fdbd2c6947ea | 41 | //const int nServerPort = 31002; |
| lesmin | 0:fdbd2c6947ea | 42 | //const char* pszDomainCode = "ThingPlug"; |
| lesmin | 0:fdbd2c6947ea | 43 | |
| lesmin | 0:fdbd2c6947ea | 44 | /* |
| lesmin | 0:fdbd2c6947ea | 45 | * Gateway/Device configuration starts here |
| lesmin | 0:fdbd2c6947ea | 46 | */ |
| lesmin | 0:fdbd2c6947ea | 47 | #define THINGPLUG_GMMP_DEVICE_SERIAL_NUM "01234567890"//"0002f7f1ce5a" |
| lesmin | 0:fdbd2c6947ea | 48 | #define THINGPLUG_GMMP_DEVICE_MANUFACTURER_ID "STMicro"//"DEV_lesmin" |
| lesmin | 0:fdbd2c6947ea | 49 | #define THINGPLUG_GMMP_SUB_DEVICE_MANUFACTURER_ID "STM32" |
| lesmin | 0:fdbd2c6947ea | 50 | |
| lesmin | 0:fdbd2c6947ea | 51 | #endif /* CONFIG_H_ */ |
