-
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
Update wnt api examples for WNT 4.0.0 #143
Conversation
MauriKuorilehto
commented
Jun 2, 2021
- 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 |
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.
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) |
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.
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 |
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.
line too long (104 > 79 characters)