I have 4 E-Series devices running OS1.4.1. They all send data to Ubidots via a webhook (I am using a webhook rather than the library to save data), and lately they have been showing the “sleep” error in the webhook console logs. I can’t figure out why this is happening… the guys at Ubidots are working on it but they don’t think its on there end.
These 4 devices are sending their Particle.publish()'s at basically the same time, although I’m pretty sure this isn’t an issue.
Here is the full webhook I’m sending by calling Particle.publish("ubi_board", payload, PRIVATE);
:
{
"event": "ubi_board",
"url": "https://industrial.api.ubidots.com/api/v1.6/devices/{{{PARTICLE_DEVICE_ID}}}",
"requestType": "POST",
"noDefaults": true,
"rejectUnauthorized": true,
"headers": {
"X-Auth-Token": "normally my token is here"
},
"json": {
"boxt": {
"value": "{{boxt}}",
"timestamp": "{{timestamp}}"
},
"boxh": {
"value": "{{boxh}}",
"timestamp": "{{timestamp}}"
},
"boxp": {
"value": "{{boxp}}",
"timestamp": "{{timestamp}}"
},
"PTmVavg": {
"value": "{{PTmVavg}}",
"timestamp": "{{timestamp}}"
},
"PTmVsd": {
"value": "{{PTmVsd}}",
"timestamp": "{{timestamp}}"
},
"3V3 mA": {
"value": "{{3V3-mA}}",
"timestamp": "{{timestamp}}"
},
"ORP mA": {
"value": "{{ORP-mA}}",
"timestamp": "{{timestamp}}"
},
"BattV": {
"value": "{{BattV}}",
"timestamp": "{{timestamp}}"
},
"RSSI": {
"value": "{{RSSI}}",
"timestamp": "{{timestamp}}"
},
"FileSize": {
"value": "{{File Size}}",
"timestamp": "{{timestamp}}"
},
"chrg": {
"value": "{{CHRG}}",
"timestamp": "{{timestamp}}"
}
}
}
and this is the payload that shows up in the console:
{
"boxt":6.09
"boxh":43.42
"boxp":1003.07
"PTmVavg":29.65
"PTmVsd":0.85
"RSSI":-67
"File Size":344240
"BattV":4.07
"ORP-mA":41.34
"3V3-mA":5.32
"CHRG":1
"timestamp":1571803268000
}
The usual particle data is included also. Variations of this webhook, along with a lot of other data, were working intermittently with “sleep” and “ESOCKETTIMEOUT” errors, so I split them up into three separate web hooks. But now, I just keep getting the “sleep” indication when I look at the logs for this webhook.
I really need to get this functioning so I can get my data to Ubidots…
Any help is appreciated!