I’m trying to call a Particle function on a specific device from a particle webhook event.
I have it working following this tutorial:
I can use the API from the following like:
This syntax will be:
This works fine as well. The problem is that I have to hard code the device id. I can’t use the variable device label that you can use in the body.
Yes, the device can subscribe to the event the Ubidots webhook uses. But if we have many devices, they will ALL get the same message.
Ubidots has the ability to have the Ubidots device label in the Body of the webhook, but I don’t see a way to do it in the URL where it needs to be.
So if I make a device type in Ubidots to auto make events for variables, I need to be able to make the device id variable in the URL.
How do I do this?