Gateway ID and Gateway Name is not coming when requesting the deviceId context variable

Gateway ID and Gateway Name is not coming when requesting the deviceId context variable

I am setting up a context variable to use the data as tags and attributes of a device. However, the Id and Name of the connected Gateway is not coming in the request.

Request result:
It is noticed that it does not contain the ID and the Name of the Gateway to which the device is connected, that is, the device information is incomplete.

image

Hi @lucasbtsuchiya,

This is intended behavior. My recommendation would be to add the Gateway Name and Gateway ID as Device Tags to the device since Device Tags are available in Device Context.

Thank you,
Heath

I understand, @Heath!
However, don’t you think that this can cause future problems when the Gateway is changed?
Because I will have to keep changing and updating the information in several places, which can cause inconsistency in the application.

@lucasbtsuchiya,

Would you be able to tell me more about what you would be using Gateway Name and ID for in a dashboard?

I can certainly see where this could cause inconsistencies in your application, but with more information about your use case, I might be able to suggest a better path forward.

Thank you,
Heath

@Heath

I need to list the Gateway that the device is connected to and also make a redirect link to the Dashboads of the Gateway. If the Gateway is replaced in the application, the link will redirect to a non-existent gateway dashboard or a wrong gateway, different from what the device is connected to.