Hey guys,
I’ve been focusing on something else and now back.
Some very nice insights so trying it out,
I’m trying the agent.send(“put”, …) method both ways and it gives me different errors. So my EI has been updated as I have
Mon Jul 22 2013 20:26:10 GMT-0700 (Pacific Daylight Time): impMac 0c2a69002275 impId 23614ab236a7c9ee SwVer f2f252d - Fri Jun 14 16:08:00 2013
Mon Jul 22 2013 20:26:10 GMT-0700 (Pacific Daylight Time): ssidMac 002275ea53d7 Ram=57.00K
In the code I have
` server.log(format(“1min: particles=%d, ratio=%5.3f%%, concentration=%7.1f, short=%3dms,long=%3dms,low=%3dms”,
particle1min_cnt,ratioMin_per,concentration,pulseshort,pulselong,downmillis));
.
local txData = ;
txData.push({key= “outputRatioMin”, value= ratioMin_per});
txData.push({key= “outputParticleMin”, value= particle1min_cnt});
txData.push({key= “outputPtclSzMin”, value= pulseshort});
txData.push({key= “outputPtclSzMax”, value= pulselong});
txData.push({key= “outputconcentration”, value= concentration});
agent.send("putPs", txData); `
and the out put I get
Mon Jul 22 2013 20:23:25 GMT-0700 (Pacific Daylight Time): 1min: particles=1, ratio=0.118%, concentration= 62.1, short= 71ms,long= 71ms,low= 71ms
Mon Jul 22 2013 20:23:25 GMT-0700 (Pacific Daylight Time): putPs: [ { “value”: 0.118333, “key”: “outputRatioMin” }, { “value”: 0, “key”: “outputParticleMin” }, { “value”: 201, “key”: “outputPtclSzMin” }, { “value”: 0, “key”: “outputPtclSzMax” }, { “value”: 62.1019, “key”: “outputconcentration” } ]
Mon Jul 22 2013 20:23:26 GMT-0700 (Pacific Daylight Time): result: 400
<< fails on the post>>>
<< so i do>>
agent.send("putPs",{ "outputRatioMin": ratioMin_per, "outputParticleMin": particle1min_cnt, "outputPtclSzMin": pulseshort, "outputPtclSzMax": pulselong, "outputconcentration": concentration });
Mon Jul 22 2013 20:33:13 GMT-0700 (Pacific Daylight Time): 1min: particles=0, ratio=0.000%, concentration= 0.6, short= 0ms,long= 0ms,low= 0ms
Mon Jul 22 2013 20:33:13 GMT-0700 (Pacific Daylight Time): putPs: { “outputPtclSzMin”: 201, “outputconcentration”: 0.62, “outputParticleMin”: 0, “outputRatioMin”: 0, “outputPtclSzMax”: 0 }
Mon Jul 22 2013 20:33:14 GMT-0700 (Pacific Daylight Time): result: 200
<< Post succeeds, but it doesn’t report/appears to loose the first two paramters.
I guess I should maybe start simple and just try pushing two parameters.
I’d posted the whole code, but the interface complains its too long
many thanks