Is there a place or doc that explains error codes ?
Thanks
Is there a place or doc that explains error codes ?
Thanks
LOL, I deserved that.
OK,
I found this code, entered it into the online IDE and clicked “Build and Run”
/ electric imp device code
server.log(“Device Started”);
arduino <- hardware.uart57;
function arduinoData() {
local b = arduino.read();
while(b != -1) {
local state = “Unknown”;
if (b == 0x10) state = “Off”;
if (b == 0x11) state = "On"
server.log("LED: " + state);
b = arduino.read();
}
}
arduino.configure(9600, 8, PARITY_NONE, 1, NO_CTSRTS, arduinoData);
=====================
In the Log window I get:
2014-01-04 16:29:54 UTC-7: [Status] Device booting; 1.29% program storage used
2014-01-04 16:29:54 UTC-7: [Agent] the index ‘hardware’ does not exist
2014-01-04 16:29:54 UTC-7: [Agent] at main:4
2014-01-04 16:32:09 UTC-7: [Status] Device booting; 1.29% program storage used
2014-01-04 16:32:09 UTC-7: [Agent] the index ‘hardware’ does not exist
2014-01-04 16:32:09 UTC-7: [Agent] at main:4
2014-01-04 16:33:58 UTC-7: [Status] Device booting; 1.29% program storage used
2014-01-04 16:33:58 UTC-7: [Agent] Device Started
2014-01-04 16:33:58 UTC-7: [Agent] the index ‘hardware’ does not exist
2014-01-04 16:33:58 UTC-7: [Agent] at main:4
Never mind all is working, pilot error.
I was going to say, looks like you put it in the agent