![](/media/cache/profiles/c355b4406b42f9ae5b0199a6e111e85a.jpg.50x50_q85.jpg)
Wifi Pressure Sensor
Dependencies: HTTPClient MPL3115A2 NTPClient TMP102 USBDevice cc3000_hostdriver_mbedsocket mbed
wifi.h@0:0bce3a738bcb, 2013-11-04 (annotated)
- 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?
User | Revision | Line number | New 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 |