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

Add Pubsub uadp discovery for Publisher Server Endpoints and DataSetWriter configuration #2428

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

mrsuciu
Copy link
Contributor

@mrsuciu mrsuciu commented Dec 14, 2023

Proposed changes

Added the implementation of uadp discovery for Publisher Server Endpoints and DataSetWriter configuration.
Implementation includes now, additionally to the existing handling of the DataSetMetadata requests, both the handling of the Publisher Server Endpoints and of DataSetWriter configuration requests as described in the V 1.04 of the OPCUA specification.

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply. You can also fill these out after creating the PR.

  • Bugfix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which adds functionality)
  • Test enhancement (non-breaking change to increase test coverage)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected, requires version increase of Nuget packages)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING doc.
  • I have signed the CLA.
  • I ran tests locally with my changes, all passed.
  • I fixed all failing tests in the CI pipelines.
  • I fixed all introduced issues with CodeQL and LGTM.
  • I have added tests that prove my fix is effective or that my feature works and increased code coverage.
  • I have added necessary documentation (if appropriate).
  • Any dependent changes have been merged and published in downstream modules.

Copy link

codecov bot commented Dec 14, 2023

Codecov Report

Attention: 255 lines in your changes are missing coverage. Please review.

Comparison is base (2b0d7ff) 52.93% compared to head (a23fa4f) 53.59%.
Report is 1 commits behind head on master.

Files Patch % Lines
...aries/Opc.Ua.PubSub/Encoding/UadpNetworkMessage.cs 21.42% 64 Missing and 2 partials ⚠️
...ies/Opc.Ua.PubSub/Transport/UdpPubSubConnection.cs 15.25% 47 Missing and 3 partials ⚠️
Libraries/Opc.Ua.PubSub/UaPubSubConnection.cs 0.00% 46 Missing ⚠️
.../Opc.Ua.PubSub/Transport/UdpDiscoverySubscriber.cs 0.00% 43 Missing ⚠️
...s/Opc.Ua.PubSub/Transport/UdpDiscoveryPublisher.cs 0.00% 38 Missing ⚠️
Libraries/Opc.Ua.PubSub/UaPubSubApplication.cs 0.00% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2428      +/-   ##
==========================================
+ Coverage   52.93%   53.59%   +0.65%     
==========================================
  Files         333      333              
  Lines       64078    64319     +241     
  Branches    13144    13175      +31     
==========================================
+ Hits        33920    34472     +552     
+ Misses      26447    26103     -344     
- Partials     3711     3744      +33     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mregen mregen added this to the 1.4.372 November updates milestone Dec 14, 2023

// temporary write StatusCode.Good
MessageStatusCodes = binaryDecoder.ReadStatusCodeArray("StatusCodes").ToArray();
Trace("DecodeDataSetWriterConfigurationMessage returned: ", MessageStatusCodes);
Copy link
Contributor

Choose a reason for hiding this comment

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

please use the Utils.LogTrace methods. The trace calls may be deprecated soon.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like the pubsub sample is still using the older Utils.Trace across the board. We need a work item to convert these, as they all map to Utils.LogInfo.

@mregen mregen merged commit f85361a into OPCFoundation:master Dec 14, 2023
44 of 45 checks passed
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.

None yet

2 participants