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: mbed CC3000_Hostdriver TEMT6200 TSI Wi-Go_eCompass_Lib_V3 WiGo_BattCharger
Fork of CC3000_Simple_Socket by
Diff: doTCPIP.h
- Revision:
- 3:405462258899
- Parent:
- 2:13ced2cb5933
- Child:
- 5:6546c5b92897
diff -r 13ced2cb5933 -r 405462258899 doTCPIP.h --- a/doTCPIP.h Sun Aug 18 07:06:20 2013 +0000 +++ b/doTCPIP.h Sat Sep 07 15:41:49 2013 +0000 @@ -37,6 +37,7 @@ #define DOTCPIP_H #include "cc3000.h" +#include "Wi-Go_eCompass_Lib_V3.h" /** TCP/IP Functions * @@ -54,7 +55,9 @@ #endif #define SMART_CONFIG_SET 0x55 -#define TCPIP_PORT 15000 +// SMTP Specific +#define HTTP_PORT 80 +#define TCPIP_PORT 15000 #define USE_DHCP 1 #define USE_STATIC_IP 2 @@ -69,8 +72,8 @@ //#define IP_ALLOC_METHOD USE_STATIC_IP // for static IP address // Default SSID Settings -//#define WPA2_KEY "this-is-a-test" -//#define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot! +//#define AP_KEY "thisthis" +//#define AP_SECURITY WPA2 // WPA2 must be enabled for use with iPhone or Android phone hotspot! #define SSID "iot" #define AP_SECURITY NONE // no security but will connect quicker! #define STATIC_IP_OCT1 192 @@ -95,21 +98,28 @@ extern userFS_t userFS; extern unsigned long ulSmartConfigFinished,ulCC3000DHCP, OkToDoShutDown, ulCC3000DHCP_configured; -//extern int server_running; +extern int server_running; extern volatile unsigned char newData; extern unsigned char ForceFixedSSID; extern char runSmartConfig; extern char requestBuffer[]; extern unsigned char myMAC[8]; extern unsigned char SmartConfigProfilestored; +extern int do_mDNS; +extern axis6_t axis6; +extern int HsecondFlag; +extern unsigned int seconds; +extern volatile int ms5Flag; extern void StartSmartConfig(void); - +int sendTCPIP(int port); void sendPython(int port); void initTCPIP(void); void runTCPIPserver(void); +int getTCPIP( char a1, char a2, char a3, char a4, int port); +void runTCPIPclient(int a1, int a2, int a3, int a4); /** Checks if WiFi is still connected. * @param None
