20170825 Test

Dependencies:   DHT11 NetworkSocketAPI WizFi310Interface mbed

Fork of WizFi310_STATION_HelloWorld by WIZnet

Revision:
6:a113bd0cd4a2
Parent:
5:f961acc1e894
Child:
7:b348cf4afaf1
--- a/main.cpp	Thu Aug 24 23:58:01 2017 +0000
+++ b/main.cpp	Wed Nov 15 00:20:09 2017 +0000
@@ -22,14 +22,12 @@
 #include "Dht11.h"
 #include "WizFi310Interface.h"
 
-#define CDS_SENSOR CDS_SENSOR
-#define DHT_SENSOR DHT_SENSOR
+#define DHT_SENSOR PC_07
 
 #if defined(TARGET_WIZwiki_W7500)
 Serial pc(USBTX, USBRX);
 WizFi310Interface wifi(D1, D0, D7, D6, D9, NC, 115200);
 
-AnalogIn myLux( CDS_SENSOR );
 Dht11 myTemp  ( DHT_SENSOR );
 #endif
 
@@ -50,10 +48,7 @@
             printf("Connection failed\r\n\r\n");
             break;
         }
-        
-        sprintf((char *)str, "{\"lux value\": %d}", (int)(myLux.read()*1000));
-        printf("%s\r\n", str);
-            
+                   
         sprintf((char *)str, "{\"temp value\": %.1lf(c), \"humidity value\": %d(%%)}"
                 ,(double)(myTemp.getCelsius()), myTemp.getHumidity());