As you can see in the array, there are 4 objects, and at times will be more detected. I need to only display the data for object with specific dmac only. Then display into the dashboard. currently the object is randomized so i get data from different sensor for the object number.
for example, in the above, the object 2 dmac is BC5729028155, but in the next data in this would change. so my dashboard will be a randomized data from sensors/object that the gateway picked up.
Just to point out that **['BC5729028155' in dmac].temp is not the most efficient way to fine the specific dmacs, as using wild card search will have to look every where first.
I think $$.payload.obj[$.dmac = "BC5729028155"] would be better/more efficient. You can still add .temp if you want specific values to.
Assuming I am reading the payload object correctly, as jbudd has pointed out there is a better way to copy and paste an object.