I have a problem with the event handler of Spark.publish().
Even though I can receive the webhook response through a command line(using particle publish and particle subscribe mine
, I cannot use it in my code. It doesn’t even go in to the event handler. I was waiting it for 10 minutes, but it still doesn’t work.
Since you publish twitter and subscribe to hook-response/twitter a not working webhook could explain that behaviour too but could not be pinned down by just looking at your code.
Maybe you could also show how you’ve set up your webhook.
Sorry, I pulled the failing process out of a larger body of code... I've should have provided more detail.
I'm using IFTTT to trigger an event named "sunrise" at sunrise every morning. A device subscribed to "sunrise" handles the event and publishes an event named "pulltext_" which triggers a webhook. The same device subscribes to "hook-response/pulltext_/0" which is looking for the response from the webhook. I'm simply publishing "hello_" in the handler so I can easily monitor if the handler gets called using "particle subscribe mine" on the CLI. However, the handler never executes (ie. I never see "hello_" come across as an event).