Skip to content

CDD API and feature flag support #301

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

sgunes-wirepas
Copy link
Contributor

This requires updating of the c-mesh-api before merging

):
logging.info("Get configuration data item request received")
try:
request = wmm.GetConfigurationDataItemRequest.from_payload(message.payload)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (87 > 79 characters)

sink = self.sink_manager.get_sink(request.sink_id)
if sink is not None:
logging.debug(f"Setting configuration data item for endpoint: {request.cdc_endpoint}")
res = sink.set_configuration_data_item(request.cdc_endpoint, request.cdc_payload)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (93 > 79 characters)


sink = self.sink_manager.get_sink(request.sink_id)
if sink is not None:
logging.debug(f"Setting configuration data item for endpoint: {request.cdc_endpoint}")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (98 > 79 characters)

):
logging.info("Set configuration data item request received")
try:
request = wmm.SetConfigurationDataItemRequest.from_payload(message.payload)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (87 > 79 characters)

)

# Register for get configuration data item request
topic = TopicGenerator.make_get_configuration_data_item_request_topic(self.gw_id)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (89 > 79 characters)

@@ -493,6 +500,19 @@ def _on_connect(self):
self.mqtt_wrapper.subscribe(
topic, self._on_otap_set_target_scratchpad_request_received
)

# Register for set configuration data item request
topic = TopicGenerator.make_set_configuration_data_item_request_topic(self.gw_id)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (89 > 79 characters)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we actually increase max line limit to something like 100 or 120?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant