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:
- 16:3fb612af0dc5
- Parent:
- 15:59f4cee0da79
- Child:
- 23:7304a998959b
diff -r 59f4cee0da79 -r 3fb612af0dc5 main.h --- a/main.h Tue Mar 25 13:00:09 2014 +0000 +++ b/main.h Fri Apr 04 15:17:07 2014 +0000 @@ -16,42 +16,17 @@ #ifndef MAIN_H #define MAIN_H -#define WIGO 1 -#define WIFI_DIPCORTEX 2 -#define MBED_BOARD_EXAMPLE 3 -#define UNDEFINED 4 - -#define MY_BOARD WIGO - -// use this defines in AP_SECURITY -#define NONE 0 -#define WEP 1 -#define WPA 2 -#define WPA2 3 - -// use smart config -#define USE_SMART_CONFIG 0 +#include "WiflyInterface.h" // Default SSID Settings -#define AP_KEY "goatroom" -#define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot! -#define SSID "ASEDEMO2" +#define AP_KEY "asedemo1" +#define SSID "trentonhub" + -#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 1 -#define STATIC_IP_OCT4 3 - -#define STATIC_GW_OCT4 1 // Static Gateway address = STATIC_IP_OCT1.STATIC_IP_OCT2.STATIC_IP_OCT3.STATIC_GW_OCT4 - - -void init(); +extern Endpoint nsp; +extern UDPSocket server; +extern char endpoint_name[]; +extern uint8_t ep_type[]; +extern uint8_t lifetime_ptr[]; #endif