20170825 Test
Dependencies: DHT11 NetworkSocketAPI WizFi310Interface mbed
Fork of WizFi310_STATION_HelloWorld by
Revision 4:44aab68826b5, committed 2017-08-24
- Comitter:
- cliff1
- Date:
- Thu Aug 24 23:52:48 2017 +0000
- Parent:
- 3:4e4f243253e1
- Child:
- 5:f961acc1e894
- Commit message:
- 20170825_2
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Aug 24 23:30:40 2017 +0000
+++ b/main.cpp Thu Aug 24 23:52:48 2017 +0000
@@ -22,8 +22,8 @@
#include "Dht11.h"
#include "WizFi310Interface.h"
-#define CDS_SENSOR CDS_SENSOR
-#define DHT_SENSOR DHT_SENSOR
+#define CDS_SENSOR PC_15
+#define DHT_SENSOR PC_7
#if defined(TARGET_WIZwiki_W7500)
Serial pc(USBTX, USBRX);
@@ -54,8 +54,8 @@
sprintf((char *)str, "{\"lux value\": %d}", (int)(myLux.read()*1000));
printf("%s\r\n", str);
- sprintf((char *)str, "{\"temp value\": %.1lf, \"humidity value\": %d}"
- ,(double)(myTemp.getFahrenheit()), myTemp.getHumidity());
+ sprintf((char *)str, "{\"temp value\": %.1lf(c), \"humidity value\": %d(%%)}"
+ ,(double)(myTemp.getCelsius()), myTemp.getHumidity());
printf("%s\r\n\r\n", str);
