Skip to content

Commit

Permalink
Add JSON encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
randy-armstrong committed Feb 26, 2024
1 parent 6c02c35 commit e141b38
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Stack/Opc.Ua.Core/Security/Constants/SecurityConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ public static class Profiles
/// </summary>
public const string HttpsBinaryTransport = "http://opcfoundation.org/UA-Profile/Transport/https-uabinary";

/// <summary>
/// Communicates with UA JSON over HTTPS.
/// </summary>
public const string HttpsJsonTransport = "http://opcfoundation.org/UA-Profile/Transport/https-uajson";

/// <summary>
/// Uri for "PubSub UDP UADP" Profile.
/// This PubSub transport Facet defines a combination of the UDP transport protocol mapping with UADP message mapping
Expand Down
7 changes: 6 additions & 1 deletion Stack/Opc.Ua.Core/Stack/Server/SecureChannelContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ public enum RequestEncoding
/// <summary>
/// The request used the UA XML encoding.
/// </summary>
Xml
Xml,

/// <summary>
/// The request used the UA JSON encoding.
/// </summary>
Json
}
}

0 comments on commit e141b38

Please sign in to comment.