Fork of KL46Z Wifi version. Moved to KL25Z as umbrella stand now requires 2 SPIs, thus requires 46z.
Dependencies: WIZnet_Library_ASE mbed nanoservice_client_1_12
Fork of Trenton_Doormat_FRDM-KL25Z_ETH by
Diff: main.h
- Revision:
- 11:991f6c2444e9
- Parent:
- 9:48842d8a1285
- Child:
- 14:5f84f9ae168e
diff -r 09a1dd3fbd3d -r 991f6c2444e9 main.h --- a/main.h Thu Oct 10 07:17:17 2013 +0200 +++ b/main.h Thu Oct 10 20:44:01 2013 +0000 @@ -36,6 +36,21 @@ #define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot! #define SSID "test" +#define USE_DHCP 1 +#define USE_STATIC_IP 2 + +// Modify the following settings as necessary for your Wi-Fi Network setup: +#define IP_ALLOC_METHOD USE_DHCP // for DHCP assigned IP address +//#define IP_ALLOC_METHOD USE_STATIC_IP // for static IP address + +#define STATIC_IP_OCT1 192 +#define STATIC_IP_OCT2 168 +#define STATIC_IP_OCT3 0 +#define STATIC_IP_OCT4 103 + +#define STATIC_GW_OCT4 1 // Static Gateway address = STATIC_IP_OCT1.STATIC_IP_OCT2.STATIC_IP_OCT3.STATIC_GW_OCT4 + + void init(); #endif