-
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -277,6 +277,24 @@ _Even if this version is increased, the API remains backward compatible. | |
It just help backends development to identify if new features are | ||
present in a gateway._ | ||
|
||
#### Get gateway status | ||
|
||
- **Request:** | ||
|
||
> **topic:** gw-request/get_gw_status | ||
> | ||
> **content:** NA | ||
|
||
- **Response:** | ||
|
||
> **topics:** gw-response/get_gw_status/*\<gw-id\>/\<sink-id\>* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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 |
||
> | ||
> **content:** [GenericMessage][message_GenericMessage].[WirepasMessage][message_WirepasMessage].[GetGwInfoResp][message_GetGwInfoResp] | ||
|
||
This request should be handled by Gateways only if retain flag is not supported. | ||
When receiving a message on this topic, a gateway must resend its status as described | ||
in [Status message](#status_message) | ||
|
||
### Data module | ||
|
||
--- | ||
|
@@ -518,6 +536,7 @@ definition) | |
|
||
gw-request/otap_set_target_scratchpad/<gw-id>/<sink-id> | ||
|
||
gw-request/get_gw_status | ||
``` | ||
|
||
*Response* from a gateway to a backend: | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. Sink-id not on https://github.com/wirepas/gateway/pull/237/files |
||
``` | ||
|
||
*Asynchronous* event from a gateway: | ||
|
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.