tcp client for cc3000, using mbed socket interface
Dependencies: NVIC_set_all_priorities cc3000_hostdriver_mbedsocket mbed
main.h@2:c8cd9df34be9, 2013-10-03 (annotated)
- Committer:
- Kojto
- Date:
- Thu Oct 03 17:43:50 2013 +0200
- Revision:
- 2:c8cd9df34be9
- Parent:
- 0:2ffed535a426
- Child:
- 4:51ad2e8bedb9
update to the newest demo template
- unix ending
- init()
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 2:c8cd9df34be9 | 1 | /* mbed Microcontroller Library |
Kojto | 2:c8cd9df34be9 | 2 | * Copyright (c) 2006-2013 ARM Limited |
Kojto | 2:c8cd9df34be9 | 3 | * |
Kojto | 2:c8cd9df34be9 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Kojto | 2:c8cd9df34be9 | 5 | * you may not use this file except in compliance with the License. |
Kojto | 2:c8cd9df34be9 | 6 | * You may obtain a copy of the License at |
Kojto | 2:c8cd9df34be9 | 7 | * |
Kojto | 2:c8cd9df34be9 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Kojto | 2:c8cd9df34be9 | 9 | * |
Kojto | 2:c8cd9df34be9 | 10 | * Unless required by applicable law or agreed to in writing, software |
Kojto | 2:c8cd9df34be9 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Kojto | 2:c8cd9df34be9 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Kojto | 2:c8cd9df34be9 | 13 | * See the License for the specific language governing permissions and |
Kojto | 2:c8cd9df34be9 | 14 | * limitations under the License. |
Kojto | 2:c8cd9df34be9 | 15 | */ |
Kojto | 2:c8cd9df34be9 | 16 | #ifndef MAIN_H |
Kojto | 2:c8cd9df34be9 | 17 | #define MAIN_H |
Kojto | 2:c8cd9df34be9 | 18 | |
Kojto | 2:c8cd9df34be9 | 19 | #define WIGO 1 |
Kojto | 2:c8cd9df34be9 | 20 | #define WIFI_DIPCORTEX 2 |
Kojto | 2:c8cd9df34be9 | 21 | #define UNDEFINED 3 |
Kojto | 2:c8cd9df34be9 | 22 | |
Kojto | 2:c8cd9df34be9 | 23 | #define MY_BOARD WIGO |
Kojto | 2:c8cd9df34be9 | 24 | |
Kojto | 2:c8cd9df34be9 | 25 | // use this defines in AP_SECURITY |
Kojto | 2:c8cd9df34be9 | 26 | #define NONE 0 |
Kojto | 2:c8cd9df34be9 | 27 | #define WEP 1 |
Kojto | 2:c8cd9df34be9 | 28 | #define WPA 2 |
Kojto | 2:c8cd9df34be9 | 29 | #define WPA2 3 |
Kojto | 2:c8cd9df34be9 | 30 | |
Kojto | 2:c8cd9df34be9 | 31 | // use smart config |
Kojto | 2:c8cd9df34be9 | 32 | #define USE_SMART_CONFIG 0 |
Kojto | 2:c8cd9df34be9 | 33 | |
Kojto | 2:c8cd9df34be9 | 34 | // Default SSID Settings |
Kojto | 2:c8cd9df34be9 | 35 | #define AP_KEY "test" |
Kojto | 2:c8cd9df34be9 | 36 | #define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot! |
Kojto | 2:c8cd9df34be9 | 37 | #define SSID "test" |
Kojto | 2:c8cd9df34be9 | 38 | |
Kojto | 2:c8cd9df34be9 | 39 | void init(); |
Kojto | 2:c8cd9df34be9 | 40 | |
Kojto | 2:c8cd9df34be9 | 41 | #endif |