WiFi DipCortex / CC3000 Demo - Contains a menu driven set of tests to initalise and control the CC3000 radio. Also allowing you to test various TCP and UDP connections.
Dependencies: NTPClient WebSocketClient cc3000_hostdriver_mbedsocket mbed HTTPClient
wifi.h
00001 /* mbed Microcontroller Library 00002 * Copyright (c) 2006-2013 ARM Limited 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #ifndef WIFI_H 00017 #define WIFI_H 00018 00019 #include "cc3000.h" 00020 00021 #define WIGO 1 00022 #define WIFI_DIPCORTEX 2 00023 #define UNDEFINED 3 00024 00025 #define MY_BOARD WIFI_DIPCORTEX 00026 00027 // use this defines in AP_SECURITY 00028 #define NONE 0 00029 #define WEP 1 00030 #define WPA 2 00031 #define WPA2 3 00032 00033 // use smart config 00034 #define USE_SMART_CONFIG 0 00035 00036 // Default SSID Settings 00037 #define SSID "soldersplash" 00038 #define AP_KEY "wifidipcortex" 00039 #define AP_SECURITY WPA2 00040 00041 void init(); 00042 void connect_to_ssid(uint8_t *ssid); 00043 void connect_to_ssid(char *ssid, char *key, unsigned char sec_mode); 00044 void print_cc3000_info(); 00045 00046 #endif
Generated on Wed Jul 13 2022 02:13:28 by 1.7.2