cc3000 twitter demo, uses supertweet services. Set your account there and then fill a user and a secret inside the demo.
Dependencies: HTTPClient NVIC_set_all_priorities cc3000_hostdriver_mbedsocket mbed
Uses http://www.supertweet.net/, please register there and fill user and secret inside the application.
main.h@0:5aa9273cb749, 2013-10-07 (annotated)
- Committer:
- Kojto
- Date:
- Mon Oct 07 16:33:28 2013 +0000
- Revision:
- 0:5aa9273cb749
- Child:
- 3:1fbe23ea24c1
initial version
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Kojto | 0:5aa9273cb749 | 1 | /* mbed Microcontroller Library |
| Kojto | 0:5aa9273cb749 | 2 | * Copyright (c) 2006-2013 ARM Limited |
| Kojto | 0:5aa9273cb749 | 3 | * |
| Kojto | 0:5aa9273cb749 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| Kojto | 0:5aa9273cb749 | 5 | * you may not use this file except in compliance with the License. |
| Kojto | 0:5aa9273cb749 | 6 | * You may obtain a copy of the License at |
| Kojto | 0:5aa9273cb749 | 7 | * |
| Kojto | 0:5aa9273cb749 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| Kojto | 0:5aa9273cb749 | 9 | * |
| Kojto | 0:5aa9273cb749 | 10 | * Unless required by applicable law or agreed to in writing, software |
| Kojto | 0:5aa9273cb749 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| Kojto | 0:5aa9273cb749 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| Kojto | 0:5aa9273cb749 | 13 | * See the License for the specific language governing permissions and |
| Kojto | 0:5aa9273cb749 | 14 | * limitations under the License. |
| Kojto | 0:5aa9273cb749 | 15 | */ |
| Kojto | 0:5aa9273cb749 | 16 | #ifndef MAIN_H |
| Kojto | 0:5aa9273cb749 | 17 | #define MAIN_H |
| Kojto | 0:5aa9273cb749 | 18 | |
| Kojto | 0:5aa9273cb749 | 19 | #define WIGO 1 |
| Kojto | 0:5aa9273cb749 | 20 | #define WIFI_DIPCORTEX 2 |
| Kojto | 0:5aa9273cb749 | 21 | #define UNDEFINED 3 |
| Kojto | 0:5aa9273cb749 | 22 | |
| Kojto | 0:5aa9273cb749 | 23 | #define MY_BOARD WIGO |
| Kojto | 0:5aa9273cb749 | 24 | |
| Kojto | 0:5aa9273cb749 | 25 | // use this defines in AP_SECURITY |
| Kojto | 0:5aa9273cb749 | 26 | #define NONE 0 |
| Kojto | 0:5aa9273cb749 | 27 | #define WEP 1 |
| Kojto | 0:5aa9273cb749 | 28 | #define WPA 2 |
| Kojto | 0:5aa9273cb749 | 29 | #define WPA2 3 |
| Kojto | 0:5aa9273cb749 | 30 | |
| Kojto | 0:5aa9273cb749 | 31 | // use smart config |
| Kojto | 0:5aa9273cb749 | 32 | #define USE_SMART_CONFIG 0 |
| Kojto | 0:5aa9273cb749 | 33 | |
| Kojto | 0:5aa9273cb749 | 34 | // Default SSID Settings |
| Kojto | 0:5aa9273cb749 | 35 | #define AP_KEY "test" |
| Kojto | 0:5aa9273cb749 | 36 | #define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot! |
| Kojto | 0:5aa9273cb749 | 37 | #define SSID "test" |
| Kojto | 0:5aa9273cb749 | 38 | |
| Kojto | 0:5aa9273cb749 | 39 | void init(); |
| Kojto | 0:5aa9273cb749 | 40 | |
| Kojto | 0:5aa9273cb749 | 41 | #endif |