Connected switch with wifi for Project Trenton (weather control switch!). Targets NXP LPC1768 device with WiFly connectivity module.

Dependencies:   WiflyInterface mbed nanoservice_client_1_12

Fork of cc3000_simple_socket_demo by Martin Kojtal

Revision:
11:991f6c2444e9
Parent:
9:48842d8a1285
Child:
14:5f84f9ae168e
--- a/main.h	Thu Oct 10 07:17:17 2013 +0200
+++ b/main.h	Thu Oct 10 20:44:01 2013 +0000
@@ -36,6 +36,21 @@
 #define AP_SECURITY  WPA2            // WPA2 must be enabled for use with iPhone or Android phone hotspot!
 #define SSID         "test"
 
+#define USE_DHCP      1
+#define USE_STATIC_IP 2
+ 
+// 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
+ 
+#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
+ 
+
 void init();
 
 #endif