Skip to content

Commit

Permalink
Add missing otap info in setConfigResponse
Browse files Browse the repository at this point in the history
When adding support of extended status and config info with otap
setConfigResponse was not extended.
  • Loading branch information
GwendalRaoul committed Aug 23, 2023
1 parent 54167f8 commit 6d9bd93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wirepas_mesh_messaging/set_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
set_config_rw,
set_config_keys,
parse_config_ro,
parse_config_otap,
set_config_otap,
set_config_ro,
)
from .wirepas_exceptions import GatewayAPIParsingException
Expand Down Expand Up @@ -128,6 +130,7 @@ def from_payload(cls, payload):
new_config["sink_id"] = response.config.sink_id
parse_config_ro(response.config, new_config)
parse_config_rw(response.config, new_config)
parse_config_otap(response.config, new_config)

return cls(d["req_id"], d["gw_id"], d["res"], d["sink_id"], new_config, time_ms_epoch=d["time_ms_epoch"])

Expand All @@ -142,5 +145,6 @@ def payload(self):
if self.config is not None:
set_config_rw(response.config, self.config)
set_config_ro(response.config, self.config)
set_config_otap(response.config, self.config)

return message.SerializeToString()

0 comments on commit 6d9bd93

Please sign in to comment.