Is it possible to use ‘particle publish’ from the CLI and have my Core receive that message? I’ve trying to debug a subscription and have setup a Core to respond to a publish event which works from core to core but when I publish the same event via CLI the Core doesn’t react. My subscribe line is:
I can see in the dashboard the publish event that calls the webhook as well as the 5 responses starting with (hook-response/get_weather/0) but the Core doesn’t react to it. I’m using the same handler and with the subscribe statement using MY_DEVICES as in the example code.
For future reference if you have 2 subscribes that match the same name; ie ‘hook-response’ and ‘hook-response/get_weather’ and an event comes in matching both, ie ‘hook-response/get_weather/0’; then the data parameter sent to the handlers is null/empty, at least on a Core.
The other problem is very strange, apparently the order of subscriptions matter. If I do this everything works:
If I switch the order, as shown below, then the responses from the glowfish webhooks are never seen by my Core. Even if I set both to use the same handler.