Hi,
I’ve been using my device for months now, and tonight there were two webhook issues (one which pushes temps, one that polls for config to be sent).
I resolved the poll by adding device_id to the hook response template and what the firmware was looking for, per Subscribe to a Webhook response triggered by a specific device. To be honest, this doesn’t make sense as it was happily working for months. Its an improvement so lets move on. [edit: per below, it now seems the delete/add process may have been the magic fix]
THEN I notice that temps are not being pushed properly, ie they were not showing in my user interface, the database, the API gateway, no where. I have a habit of leaving a terminal window on particle subscribe mine
, so I know no particle subscribe errors were being bounced back. An example post:
Code: Particle.publish("pushtemps", publishString, 60, PRIVATE);
On the cli subscribe:
{"name":"pushtemps","data":"{\"f1\":32.00,\"f1t\":130,\"f2\":32.00,\"f2t\":180,\"f3\":32.00,\"f3t\":160,\"pit\":352.81,\"pt\":366,\"ph\":378,\"pl\":313,\"sp\":366.0,\"fan\":0,\"mode\":\"LIDOPEN\"}","ttl":"60","published_at":"2016-02-16T10:14:19.788Z","coreid":"1b003c00024734335555555555555"}
No error was observed bouncing back, and no hook-response!
This particular webhook posts through AWS HTTP gateway to do some magic in lambda. The AWS API / lambda stats showed the only request that has hit there is my manual test request via Postman (successful). Combined with no hook-response on the cli, this pretty clearly indicates to me that the webhook publish is not going where its meant to and its dying within the particle cloud.
status.particle.io says everything is peachy, but I don’t think so!