You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In Bootstrap, for the request to change the state to 1, we need to send request to things service to connect the thing and channel from bootstrap service using SDK. If the thing and channel are already connected, things service returns an error.
Therefore, we should check if the thing and channel are connected before sending the connect request from Bootstrap.
To check if the thing and channel are connected, the only way we have now is to list the channels to which the thing is connected and then check if the channel ID is present in that list.
Listing is not an efficient process. For example, if the thing has 100 channel connections, we need to retrieve the entire list of 100 channels and then check if the connection requested channel ID is present in that list.
Describe the feature you are requesting, as well as the possible use case(s) for it.
One solution to this problem is implementing a feature, specifically an endpoint in the Things service, to verify if a thing and a channel are connected. This will streamline the process and avoid the inefficiency of listing all channels to which a thing is connected. Here's a detailed outline of this solution:
Endpoint: GET /verify-connection
Request Parameters:
thing_id: The ID of the thing.
channel_id: The ID of the channel.
Response:
200 OK: If the thing is connected to the channel.
204 No Content or 401 or 403: If the thing is not connected to the channel.
Indicate the importance of this feature to you.
Must-have
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
In Bootstrap, for the request to change the state to 1, we need to send request to things service to connect the thing and channel from bootstrap service using SDK. If the thing and channel are already connected, things service returns an error.
Therefore, we should check if the thing and channel are connected before sending the connect request from Bootstrap.
To check if the thing and channel are connected, the only way we have now is to list the channels to which the thing is connected and then check if the channel ID is present in that list.
Listing is not an efficient process. For example, if the thing has 100 channel connections, we need to retrieve the entire list of 100 channels and then check if the connection requested channel ID is present in that list.
Describe the feature you are requesting, as well as the possible use case(s) for it.
One solution to this problem is implementing a feature, specifically an endpoint in the Things service, to verify if a thing and a channel are connected. This will streamline the process and avoid the inefficiency of listing all channels to which a thing is connected. Here's a detailed outline of this solution:
Endpoint:
GET /verify-connection
Request Parameters:
thing_id
: The ID of the thing.channel_id
: The ID of the channel.Response:
200 OK
: If the thing is connected to the channel.204 No Content or 401 or 403
: If the thing is not connected to the channel.Indicate the importance of this feature to you.
Must-have
Anything else?
No response
The text was updated successfully, but these errors were encountered: