cc3000 websocket demo for cc3000

Dependencies:   NVIC_set_all_priorities WebSocketClient cc3000_hostdriver_mbedsocket mbed

Committer:
SolderSplashLabs
Date:
Wed Oct 02 20:19:33 2013 +0000
Revision:
2:398f4fa8fb4a
Parent:
1:214d23448fa7
Child:
3:044c6bd2d569
Compiled for DipCortex

Who changed what in which revision?

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