Bought this from sparkfun.com and tried this code but not sure if it works because the server.log is not working in Chrome. So, can anyone tell me if I have the right idea?
`
function readTandH(){
local alsAddr = 0x40;
server.log(“Go”);
hardware.i2c89.write(alsAddr<<1,"\xf3");
imp.sleep(0.07);
local temp = hardware.i2c89.read(alsAddr<<1, “”, 3); //hardware.i2c89.write(alsAddr,"\f5"); //imp.sleep(60);
//local hum = hardware.i2c89.read(alsAddr, “”, 3);
server.log(format("%02x %02x", temp[0], temp[1]));
I found that when I don’t see any data in the server log screen, if I open a new tab in Chrome and go to any website, when I go back to the Imp screen, the log data is there…??? Windows 7 and Chrome Version 31.0.1650.63 m
No and really what I have to do is open (I am not kidding) open Xively, click on my feed and click graphs then when I go back to the Imp IDE, the server logs are there. I have tested this many ways and that is the scenario that works…???