cc3000 tcp server demo (please check mbed socket interface for python script to test this demo) mbed.org/handbook/Socket

Dependencies:   NVIC_set_all_priorities cc3000_hostdriver_mbedsocket mbed

Committer:
Kojto
Date:
Thu Oct 03 17:51:34 2013 +0200
Revision:
3:3f53082b16ec
Parent:
0:1cadde6a47e3
Child:
5:ba0af4c6f21e
ending - unix, init(), update to the new demo template

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 3:3f53082b16ec 1 /* mbed Microcontroller Library
Kojto 3:3f53082b16ec 2 * Copyright (c) 2006-2013 ARM Limited
Kojto 3:3f53082b16ec 3 *
Kojto 3:3f53082b16ec 4 * Licensed under the Apache License, Version 2.0 (the "License");
Kojto 3:3f53082b16ec 5 * you may not use this file except in compliance with the License.
Kojto 3:3f53082b16ec 6 * You may obtain a copy of the License at
Kojto 3:3f53082b16ec 7 *
Kojto 3:3f53082b16ec 8 * http://www.apache.org/licenses/LICENSE-2.0
Kojto 3:3f53082b16ec 9 *
Kojto 3:3f53082b16ec 10 * Unless required by applicable law or agreed to in writing, software
Kojto 3:3f53082b16ec 11 * distributed under the License is distributed on an "AS IS" BASIS,
Kojto 3:3f53082b16ec 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Kojto 3:3f53082b16ec 13 * See the License for the specific language governing permissions and
Kojto 3:3f53082b16ec 14 * limitations under the License.
Kojto 3:3f53082b16ec 15 */
Kojto 3:3f53082b16ec 16 #ifndef MAIN_H
Kojto 3:3f53082b16ec 17 #define MAIN_H
Kojto 3:3f53082b16ec 18
Kojto 3:3f53082b16ec 19 #define WIGO 1
Kojto 3:3f53082b16ec 20 #define WIFI_DIPCORTEX 2
Kojto 3:3f53082b16ec 21 #define UNDEFINED 3
Kojto 3:3f53082b16ec 22
Kojto 3:3f53082b16ec 23 #define MY_BOARD WIGO
Kojto 3:3f53082b16ec 24
Kojto 3:3f53082b16ec 25 // use this defines in AP_SECURITY
Kojto 3:3f53082b16ec 26 #define NONE 0
Kojto 3:3f53082b16ec 27 #define WEP 1
Kojto 3:3f53082b16ec 28 #define WPA 2
Kojto 3:3f53082b16ec 29 #define WPA2 3
Kojto 3:3f53082b16ec 30
Kojto 3:3f53082b16ec 31 // use smart config
Kojto 3:3f53082b16ec 32 #define USE_SMART_CONFIG 0
Kojto 3:3f53082b16ec 33
Kojto 3:3f53082b16ec 34 // Default SSID Settings
Kojto 3:3f53082b16ec 35 #define AP_KEY "test"
Kojto 3:3f53082b16ec 36 #define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot!
Kojto 3:3f53082b16ec 37 #define SSID "test"
Kojto 3:3f53082b16ec 38
Kojto 3:3f53082b16ec 39 void init();
Kojto 3:3f53082b16ec 40
Kojto 3:3f53082b16ec 41 #endif