Handler does not trigger from webhook when using System.deviceID

I am using the developer sandbox.

I am successfully able to subscribe to a webhook event with this:

Particle.subscribe("hook-response/weather/", myHandler);

But though I see the proper response in the Webhook logs, my device never triggers when I use:

Particle.subscribe(System.deviceID() + "/hook-response/weather/", myHandler);

(I have tried it with and without the leading slash in the hook)

OS 5.7.0 on Argon

In your integration, open the Advanced Settings expansion triangle and make sure the response topic is:


For non-product integrations, it may be blank, which leaves out the Device ID.

You do want the slash before hook-response in Particle.subscribe().

1 Like

That was it (actually, it was the Response Topic that needed to be updated, not the template).

Thank you very much!

1 Like