Small demo to purely test UDP, depends on the module already being configured to auto connect to an access point

Dependencies:   USBDevice cc3000_hostdriver_mbedsocket mbed

Fork of WifiDipCortex-UDPDemo by Carl - SolderSplash Labs

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers wifi.h Source File

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 
00043 
00044 #endif