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
main.h@9:48842d8a1285, 2013-10-09 (annotated)
- Committer:
- Kojto
- Date:
- Wed Oct 09 19:43:06 2013 +0000
- Revision:
- 9:48842d8a1285
- Parent:
- 7:afaa17c11965
- Child:
- 11:991f6c2444e9
Update the host driver to rev 36
Who changed what in which revision?
User | Revision | Line number | New 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 | 6:6eaae34586b8 | 19 | #define WIGO 1 |
Kojto | 6:6eaae34586b8 | 20 | #define WIFI_DIPCORTEX 2 |
Kojto | 6:6eaae34586b8 | 21 | #define UNDEFINED 3 |
Kojto | 6:6eaae34586b8 | 22 | |
Kojto | 6:6eaae34586b8 | 23 | #define MY_BOARD WIGO |
Kojto | 6:6eaae34586b8 | 24 | |
Kojto | 6:6eaae34586b8 | 25 | // use this defines in AP_SECURITY |
Kojto | 6:6eaae34586b8 | 26 | #define NONE 0 |
Kojto | 6:6eaae34586b8 | 27 | #define WEP 1 |
Kojto | 6:6eaae34586b8 | 28 | #define WPA 2 |
Kojto | 6:6eaae34586b8 | 29 | #define WPA2 3 |
Kojto | 6:6eaae34586b8 | 30 | |
Kojto | 6:6eaae34586b8 | 31 | // use smart config |
Kojto | 6:6eaae34586b8 | 32 | #define USE_SMART_CONFIG 0 |
Kojto | 6:6eaae34586b8 | 33 | |
Kojto | 6:6eaae34586b8 | 34 | // Default SSID Settings |
Kojto | 7:afaa17c11965 | 35 | #define AP_KEY "test" |
Kojto | 6:6eaae34586b8 | 36 | #define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot! |
Kojto | 7:afaa17c11965 | 37 | #define SSID "test" |
Kojto | 6:6eaae34586b8 | 38 | |
Kojto | 6:6eaae34586b8 | 39 | void init(); |
Kojto | 6:6eaae34586b8 | 40 | |
Kojto | 6:6eaae34586b8 | 41 | #endif |