The confusion is about limiting the route execution to a single Notecard.
I was about to set up a few General HTTP/HTTPS Request/Response routes to Ubidots and just when I thought everything was clear, I got confused about the scope of the route execution.
My understanding of the documentation is that the scope of the route execution can be a single device, a fleet, or an entire project.
A Route is an external API, or Server location, where Notes will be forwarded for a Device or Fleet upon receipt.
Routes are defined in Notehub for a Project, and can target a single Fleet or all devices in a Project.
In the General HTTP/HTTPS Request/Response configuration there is a filter for selecting a fleet or using the route for the entire project:
I couldn’t figure out, however, how to limit the scope of a route to a single device.
Following the Route Tutorial Ubidots specific part I was under the impression that substituting the [device label]
in the Ubidots endpoint URL https://industrial.api.ubidots.com/api/v1.6/devices/[device lable]/
with the Notecard’s Product SN or DeviceUID, the scope of the execution will be automatically limited to that particular device. Nevertheless, that’s not the case.
Setting up multiple routes with multiple [device label_1] ; [device label_2] ...etc
, successfully initialize the corresponding device_1, device_2, etc. in the Ubidots platform, but all devices display all the variables in the Fleet or Project.
If multiple Notecards send temperature and humidity information for example, than all devices in Ubidots will display the same temperature and humidity values that were extracted from the last event in the fleet or project. When event_1 captures device_1, than all devices in Ubidots will display temp_1 and humidity_1. When event_2 captures device_2, than all devices in Ubidots will display temp_2 and humidity_2 … and so forth.
So, the brief question is, how can I limit the route execution to one particular Notecard ?
Thanks