WiFi DipCortex USB CDC

Dependencies:   HTTPClient NTPClient USBDevice WebSocketClient cc3000_hostdriver_mbedsocket mbed

Fork of WiFiDip-UsbKitchenSink by Carl - SolderSplash Labs

http://www.soldersplash.co.uk/products/wifi-dipcortex/

Demo shows you how to implement the CC3000 library with the WiFi DipCortex.

The demo shows :

  • USB CDC ( Serial ) Menu system allow control of the module and starting each example
  • Smart Connect
  • Manual connect
  • Connection status
  • Ping
  • TCP Client
  • TCP Server
  • Web Socket read/write to sockets.mbed.org
  • HTTP Client test Post, Put, Delete
  • Posting ADC data to Xively every 1 second
  • UDP Client
  • UDP Server
  • NTP Example, contacts time server to get the current time

You will need a Driver for the USB CDC port which can be found here : http://www.soldersplash.co.uk/docs/DipCortex-USB-CDC.zip

Please refer to : http://mbed.org/users/SolderSplashLabs/notebook/dipcortex---getting-started-with-mbed/ as well as the SolderSplash Forum for support http://forum.soldersplash.co.uk/viewforum.php?f=15

Committer:
SolderSplashLabs
Date:
Mon Nov 04 19:55:00 2013 +0000
Revision:
0:0bce3a738bcb
Test Project, USB CDC and CC3000 Library

Who changed what in which revision?

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