Skip to content
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

Update wnt api examples for WNT 4.0.0 #143

Merged
merged 7 commits into from
Jun 9, 2021
Merged

Conversation

MauriKuorilehto
Copy link
Contributor

  • Updated proto files to the new version
  • Updated API helpers based on the changes in interface
  • Updated API usage examples with the changes in parameters and received messages
  • Changed handling of realtime situation service messages to handle message collections
  • Updated on_close handlers so that new websocket client libraries can be used

Contains following changes:
- Modifications based on the changes in message structures
- Updated examples to be compatible with newer websocket-client versions (on_close callback)
- Default values to on_close callback handler parameters to support old versions
- Disable tracing by default to avoid too verbose output in newer versions
is_close (bool): set to true to stop repeated querying
resend_interval_s (int): how often the get scratchpad should be run
is_close (bool): set to true to stop repeated gets
is_sink_only (bool): set to true to get scratchpad status only from sink nodes
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 (90 > 79 characters)

self.metadata_thread.socket.send(
json.dumps(
self.messages.message_query_scratchpad_status(777555, 0, False)
self.messages.message_get_scratchpad_status(777555, 0, False, False)
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 (88 > 79 characters)

"""Returns network delete message

Args:
network_id (str): network id
is_detete_nodes (bool): flag controlling whether to delete also nodes in the deleted network
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 (104 > 79 characters)

@teemupiiroinenwirepas teemupiiroinenwirepas merged commit 53d6a10 into master Jun 9, 2021
@teemupiiroinenwirepas teemupiiroinenwirepas deleted the update-wnt-api branch June 9, 2021 09:28
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.

2 participants