Properly setting up Xively Channels with Agent?

The device is working and uploading data, but I’m getting some intermittent errors on server log.
Sometimes it uploads 2-3 times and reboots, sometimes it takes 8-10 uploads:

some errors found:

[Device] ERROR: parameter 2 has an invalid type ‘null’ ; expected: ‘integer|float’
[Device] ERROR: at checkUART:53

here is another:
[Device] ERROR: arith op + on between ‘null’ and ‘integer’
[Device] ERROR: at checkUART:50

I’m gonna leave this running to see if are thrown more errors during the night.

Thanks again

one more:
[Device] ERROR: parameter 2 has an invalid type ‘null’ ; expected: ‘integer|float’
[Device] ERROR: at checkUART:32

I’d say you are getting bad data somewhere between the Arduino and the Imp. I would slow your reads down considerably. Xively won’t let you post data constantly with a dev account, though I think you can post 25x/min, which is quite a bit.

thanks again jwehr!
the code is working fine now (60s interval between updates) 4/min.

I’m posting the code on github and soon I will post a link here.

update: https://github.com/luizhavoc/HvcsGrowerBot