Skip to content

Commit

Permalink
fix end
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaleb Bozorgzadeh committed Aug 22, 2022
1 parent 76207ce commit f557894
Showing 1 changed file with 30 additions and 29 deletions.
59 changes: 30 additions & 29 deletions lib/ex_opcua.ex
Original file line number Diff line number Diff line change
Expand Up @@ -103,34 +103,35 @@ defmodule ExOpcua do
endpoints
end
end

# def setup_session() do
# e =
# ExOpcua.discover_endpoints(
# "opc.tcp://Kalebs-MacBook-Pro.local:53530/OPCUA/SimulationServer"
# )
# |> Enum.find(
# &match?(%{sec_policy_uri: "http://opcfoundation.org/UA/SecurityPolicy#None"}, &1)
# )

# {:ok, pid} = ExOpcua.start_session(e)

# b = %ExOpcua.DataTypes.BrowseDescription{
# browse_direction: :forward,
# include_subtypes: true,
# node_class_mask: 0,
# node_id: %ExOpcua.DataTypes.NodeId{
# encoding_mask: 1,
# identifier: 23470,
# namespace_idx: 0,
# server_idx: nil,
# server_uri: nil
# },
# reference_type_id: %{encoding_mask: 0, identifier: 35},
# result_mask: 31
# }

# {e, pid, b}
# end
end

# def setup_session() do
# e =
# ExOpcua.discover_endpoints(
# "opc.tcp://Kalebs-MacBook-Pro.local:53530/OPCUA/SimulationServer"
# )
# |> Enum.find(
# &match?(%{sec_policy_uri: "http://opcfoundation.org/UA/SecurityPolicy#None"}, &1)
# )

# {:ok, pid} = ExOpcua.start_session(e)

# b = %ExOpcua.DataTypes.BrowseDescription{
# browse_direction: :forward,
# include_subtypes: true,
# node_class_mask: 0,
# node_id: %ExOpcua.DataTypes.NodeId{
# encoding_mask: 1,
# identifier: 23470,
# namespace_idx: 0,
# server_idx: nil,
# server_uri: nil
# },
# reference_type_id: %{encoding_mask: 0, identifier: 35},
# result_mask: 31
# }

# {e, pid, b}
# end

# ExOpcua.discover_endpoints("opc.tcp://Kalebs-MacBook-Pro.local:53530/OPCUA/SimulationServer") |> Enum.find(&match?(%{sec_policy_uri: "http://opcfoundation.org/UA/SecurityPolicy#None"}, &1))

0 comments on commit f557894

Please sign in to comment.