-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating the protobuf messages to handle request on the gateway status #156
base: master
Are you sure you want to change the base?
Conversation
Adding Gateways status request and response protobuf messages. This can be used in the case where the mqtt broker does not support retained message and we would like to know the status of the gateways as soon as possible. The concerned topics in the mqtt broker will be : gw-request/get_gw_status gw-response/get_gw_status/<gw-id>/<sink-id>
|
||
- **Request:** | ||
|
||
> **topic:** gw-request/get_gw_status |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this have <gw-id>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to trigger for all gateways.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, exactly, the goal of this new message was to request the status of all gateways to know which ones are online. Therefore, gw-id is not present in the topic.
|
||
- **Response:** | ||
|
||
> **topics:** gw-response/get_gw_status/*\<gw-id\>/\<sink-id\>* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sink-id needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right sink-id is not used and should be removed from the readme
@@ -538,6 +557,8 @@ definition) | |||
gw-response/otap_process_scratchpad/<gw-id>/<sink-id> | |||
|
|||
gw-response/otap_set_target_scratchpad/<gw-id>/<sink-id> | |||
|
|||
gw-response/get_gw_status/<gw-id>/<sink-id> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sink-id not on https://github.com/wirepas/gateway/pull/237/files
Adding Gateways status request and response protobuf messages. This can be used in the case where the mqtt broker does not support retained message and we would like to know the status of the gateways as soon as possible.
The concerned topics in the mqtt broker would be:
gw-request/get_gw_status
gw-response/get_gw_status//