Xively Demo - WIZ550io, W5500 (WIZnet) + Temperature Sensor (DS18B20) EthernetInterfaceW5500 + LPC11U68 Xpresso v2 used
Dependencies: DS18B20_1wire W5500Interface libxively mbed
Fork of WIZ550io_Xively_Demo by
Xively Demo
Board Pic
LPC11U68 + WIZ550io (WIZnet) + DS18B20 Temp Sensor
PC Screenshot
Diff: main.cpp
- Revision:
- 13:ab5db87a253a
- Parent:
- 10:6497effa1a26
- Child:
- 14:5a9ba3d8c9ca
diff -r 2ba0e2e0dc2d -r ab5db87a253a main.cpp --- a/main.cpp Thu Jul 17 07:30:45 2014 +0000 +++ b/main.cpp Mon Sep 01 01:48:53 2014 +0000 @@ -19,6 +19,8 @@ DS18B20 sensor(P1_25, DS18B20::RES_12_BIT); // Dallas 1-wire #endif +//#define _DHCP + /* wifly object where: * - p9 and p10 are for the serial communication * - p25 is for the reset pin @@ -78,7 +80,7 @@ #else // as your env. change to real IP address and so on. - int ret = eth.init("222.98.173.212", "255.255.255.192", "222.98.173.254"); + int ret = eth.init("222.98.173.211", "255.255.255.192", "222.98.173.254"); if (!ret) { printf("Initialized, MAC: %s\n", eth.getMACAddress()); printf("Connected, IP: %s, MASK: %s, GW: %s\n", @@ -164,6 +166,6 @@ // send to xively server xi_feed_update( xi_context, &feed ); printf( "done...\n" ); - wait( 15.0 ); + wait( 5.0 ); } }