Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NVIC_set_all_priorities cc3000_hostdriver_mbedsocket mbed
Diff: tcp_ip_demo.h
- Revision:
- 5:12ea15b9c2f4
- Parent:
- 4:b5875efcf0e5
- Child:
- 6:6eaae34586b8
--- a/tcp_ip_demo.h Thu Oct 03 16:56:32 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,61 +0,0 @@ -#ifndef DOTCPIP_H -#define DOTCPIP_H - -#include "cc3000.h" - -/** TCP/IP Functions -* -*/ -#ifndef FALSE -#define FALSE 0 -#endif - -#ifndef TRUE -#define TRUE 1 -#endif - -#define SMART_CONFIG_SET 0x55 -#define TCPIP_PORT 15000 - -#define USE_DHCP 1 -#define USE_STATIC_IP 2 - -#define NONE 0 -#define WEP 1 -#define WPA 2 -#define WPA2 3 - -// Modify the following settings as necessary for your Wi-Fi Network setup: -#define IP_ALLOC_METHOD USE_DHCP // for DHCP assigned IP address -//#define IP_ALLOC_METHOD USE_STATIC_IP // for static IP address - -// Default SSID Settings -#define AP_KEY "87654321" -#define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot! -#define SSID "test" -//#define AP_SECURITY NONE // no security but will connect quicker! -#define STATIC_IP_OCT1 192 -#define STATIC_IP_OCT2 168 -#define STATIC_IP_OCT3 0 -#define STATIC_IP_OCT4 103 - -#define STATIC_GW_OCT4 1 // Static Gateway address = STATIC_IP_OCT1.STATIC_IP_OCT2.STATIC_IP_OCT3.STATIC_GW_OCT4 - -#define REQ_BUFFER_SIZE 400 - - -extern mbed_cc3000::tUserFS userFS; - -extern uint8_t myMAC[8]; -extern uint8_t SmartConfigProfilestored; - - -void check_dhcp(void); -void start_smart_config(void); -void create_tcp_connection(int32_t port); -void init_dhcp(void); -void run_tcp_server(void); -void do_FTC(void); -void set_dhcp(void); - -#endif // DOTCPIP_H


SimpleLink Wi-Fi CC3000