Weather control switch for connected day. NXP LPC 1768 module. Ethernet connectivity.
Dependencies: EthernetInterface mbed-rtos mbed nanoservice_client_1_12
Fork of Trenton_Switch_LPC1768_WIFLY by
Diff: main.h
- Revision:
- 6:6eaae34586b8
- Parent:
- 5:12ea15b9c2f4
- Child:
- 7:afaa17c11965
--- a/main.h Thu Oct 03 21:26:22 2013 +0200 +++ b/main.h Sun Oct 06 12:31:50 2013 +0200 @@ -1,56 +1,56 @@ -/* mbed Microcontroller Library - * Copyright (c) 2006-2013 ARM Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#ifndef MAIN_H -#define MAIN_H - -#define WIGO 1 -#define WIFI_DIPCORTEX 2 -#define UNDEFINED 3 - -#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 - - // Default SSID Settings -#define AP_KEY "zxcvbnm,./" -#define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot! -#define SSID "SSID" - -#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 +/* mbed Microcontroller Library + * Copyright (c) 2006-2013 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#ifndef MAIN_H +#define MAIN_H + +#define WIGO 1 +#define WIFI_DIPCORTEX 2 +#define UNDEFINED 3 + +#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 + + // Default SSID Settings +#define AP_KEY "zxcvbnm,./" +#define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot! +#define SSID "SSID" + +#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