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 Eric Gowland

Committer:
erigow01
Date:
Tue Mar 25 13:00:09 2014 +0000
Revision:
15:59f4cee0da79
Parent:
14:5f84f9ae168e
Child:
16:3fb612af0dc5
Fixed CoAP protocol - tx_cb problem.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 6:6eaae34586b8 1 /* mbed Microcontroller Library
Kojto 6:6eaae34586b8 2 * Copyright (c) 2006-2013 ARM Limited
Kojto 6:6eaae34586b8 3 *
Kojto 6:6eaae34586b8 4 * Licensed under the Apache License, Version 2.0 (the "License");
Kojto 6:6eaae34586b8 5 * you may not use this file except in compliance with the License.
Kojto 6:6eaae34586b8 6 * You may obtain a copy of the License at
Kojto 6:6eaae34586b8 7 *
Kojto 6:6eaae34586b8 8 * http://www.apache.org/licenses/LICENSE-2.0
Kojto 6:6eaae34586b8 9 *
Kojto 6:6eaae34586b8 10 * Unless required by applicable law or agreed to in writing, software
Kojto 6:6eaae34586b8 11 * distributed under the License is distributed on an "AS IS" BASIS,
Kojto 6:6eaae34586b8 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Kojto 6:6eaae34586b8 13 * See the License for the specific language governing permissions and
Kojto 6:6eaae34586b8 14 * limitations under the License.
Kojto 6:6eaae34586b8 15 */
Kojto 6:6eaae34586b8 16 #ifndef MAIN_H
Kojto 6:6eaae34586b8 17 #define MAIN_H
Kojto 6:6eaae34586b8 18
Kojto 14:5f84f9ae168e 19 #define WIGO 1
Kojto 14:5f84f9ae168e 20 #define WIFI_DIPCORTEX 2
Kojto 14:5f84f9ae168e 21 #define MBED_BOARD_EXAMPLE 3
Kojto 14:5f84f9ae168e 22 #define UNDEFINED 4
Kojto 6:6eaae34586b8 23
Kojto 6:6eaae34586b8 24 #define MY_BOARD WIGO
Kojto 6:6eaae34586b8 25
Kojto 6:6eaae34586b8 26 // use this defines in AP_SECURITY
Kojto 6:6eaae34586b8 27 #define NONE 0
Kojto 6:6eaae34586b8 28 #define WEP 1
Kojto 6:6eaae34586b8 29 #define WPA 2
Kojto 6:6eaae34586b8 30 #define WPA2 3
Kojto 6:6eaae34586b8 31
Kojto 6:6eaae34586b8 32 // use smart config
Kojto 6:6eaae34586b8 33 #define USE_SMART_CONFIG 0
Kojto 6:6eaae34586b8 34
Kojto 6:6eaae34586b8 35 // Default SSID Settings
erigow01 15:59f4cee0da79 36 #define AP_KEY "goatroom"
Kojto 6:6eaae34586b8 37 #define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot!
erigow01 15:59f4cee0da79 38 #define SSID "ASEDEMO2"
Kojto 6:6eaae34586b8 39
frankvnk 11:991f6c2444e9 40 #define USE_DHCP 1
frankvnk 11:991f6c2444e9 41 #define USE_STATIC_IP 2
frankvnk 11:991f6c2444e9 42
frankvnk 11:991f6c2444e9 43 // Modify the following settings as necessary for your Wi-Fi Network setup:
frankvnk 11:991f6c2444e9 44 #define IP_ALLOC_METHOD USE_DHCP // for DHCP assigned IP address
frankvnk 11:991f6c2444e9 45 //#define IP_ALLOC_METHOD USE_STATIC_IP // for static IP address
frankvnk 11:991f6c2444e9 46
frankvnk 11:991f6c2444e9 47 #define STATIC_IP_OCT1 192
frankvnk 11:991f6c2444e9 48 #define STATIC_IP_OCT2 168
erigow01 15:59f4cee0da79 49 #define STATIC_IP_OCT3 1
erigow01 15:59f4cee0da79 50 #define STATIC_IP_OCT4 3
frankvnk 11:991f6c2444e9 51
frankvnk 11:991f6c2444e9 52 #define STATIC_GW_OCT4 1 // Static Gateway address = STATIC_IP_OCT1.STATIC_IP_OCT2.STATIC_IP_OCT3.STATIC_GW_OCT4
frankvnk 11:991f6c2444e9 53
frankvnk 11:991f6c2444e9 54
Kojto 6:6eaae34586b8 55 void init();
Kojto 6:6eaae34586b8 56
Kojto 6:6eaae34586b8 57 #endif