Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
97a0c3ff
Commit
97a0c3ff
authored
Jan 10, 2016
by
olivier R-D
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set default port to 4840. This is standard OPC-UA port.
parent
7d99e8bd
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
14 deletions
+12
-14
docs/index.rst
docs/index.rst
+0
-2
examples/client_to_kepware.py
examples/client_to_kepware.py
+1
-1
examples/example-client.py
examples/example-client.py
+2
-2
examples/example-server-methods.py
examples/example-server-methods.py
+2
-2
examples/example-server.py
examples/example-server.py
+2
-2
examples/minimal-client.py
examples/minimal-client.py
+2
-2
examples/minimal-server-with-encryption.py
examples/minimal-server-with-encryption.py
+1
-1
examples/minimal-server.py
examples/minimal-server.py
+1
-1
opcua/server/server.py
opcua/server/server.py
+1
-1
No files found.
docs/index.rst
View file @
97a0c3ff
...
...
@@ -6,8 +6,6 @@
Python OPC-UA Documentation
=========================================
Directory structure:
Contents:
.. toctree::
...
...
examples/client_to_kepware.py
View file @
97a0c3ff
...
...
@@ -23,7 +23,7 @@ if __name__ == "__main__":
#from IPython import embed
logging
.
basicConfig
(
level
=
logging
.
WARN
)
client
=
Client
(
"opc.tcp://192.168.56.100:49320/OPCUA/SimulationServer/"
)
#client = Client("opc.tcp://192.168.56.100:484
1
/OPCUA/SimulationServer/")
#client = Client("opc.tcp://192.168.56.100:484
0
/OPCUA/SimulationServer/")
#client = Client("opc.tcp://olivier:olivierpass@localhost:53530/OPCUA/SimulationServer/")
try
:
client
.
connect
()
...
...
examples/example-client.py
View file @
97a0c3ff
...
...
@@ -40,8 +40,8 @@ if __name__ == "__main__":
#logger = logging.getLogger("KeepAlive")
#logger.setLevel(logging.DEBUG)
client
=
Client
(
"opc.tcp://localhost:484
1
/freeopcua/server/"
)
# client = Client("opc.tcp://admin@localhost:484
1
/freeopcua/server/") #connect using a user
client
=
Client
(
"opc.tcp://localhost:484
0
/freeopcua/server/"
)
# client = Client("opc.tcp://admin@localhost:484
0
/freeopcua/server/") #connect using a user
try
:
client
.
connect
()
...
...
examples/example-server-methods.py
View file @
97a0c3ff
...
...
@@ -50,8 +50,8 @@ if __name__ == "__main__":
# now setup our server
server
=
Server
()
#server.set_endpoint("opc.tcp://localhost:484
1
/freeopcua/server/")
server
.
set_endpoint
(
"opc.tcp://0.0.0.0:484
1
/freeopcua/server/"
)
#server.set_endpoint("opc.tcp://localhost:484
0
/freeopcua/server/")
server
.
set_endpoint
(
"opc.tcp://0.0.0.0:484
0
/freeopcua/server/"
)
server
.
set_server_name
(
"FreeOpcUa Example Server"
)
# setup our own namespace
...
...
examples/example-server.py
View file @
97a0c3ff
...
...
@@ -65,8 +65,8 @@ if __name__ == "__main__":
# now setup our server
server
=
Server
()
#server.disable_clock()
#server.set_endpoint("opc.tcp://localhost:484
1
/freeopcua/server/")
server
.
set_endpoint
(
"opc.tcp://0.0.0.0:484
1
/freeopcua/server/"
)
#server.set_endpoint("opc.tcp://localhost:484
0
/freeopcua/server/")
server
.
set_endpoint
(
"opc.tcp://0.0.0.0:484
0
/freeopcua/server/"
)
server
.
set_server_name
(
"FreeOpcUa Example Server"
)
# setup our own namespace
...
...
examples/minimal-client.py
View file @
97a0c3ff
...
...
@@ -7,8 +7,8 @@ from opcua import Client
if
__name__
==
"__main__"
:
client
=
Client
(
"opc.tcp://localhost:484
1
/freeopcua/server/"
)
# client = Client("opc.tcp://admin@localhost:484
1
/freeopcua/server/") #connect using a user
client
=
Client
(
"opc.tcp://localhost:484
0
/freeopcua/server/"
)
# client = Client("opc.tcp://admin@localhost:484
0
/freeopcua/server/") #connect using a user
try
:
client
.
connect
()
...
...
examples/minimal-server-with-encryption.py
View file @
97a0c3ff
...
...
@@ -10,7 +10,7 @@ if __name__ == "__main__":
# setup our server
server
=
Server
()
server
.
set_endpoint
(
"opc.tcp://0.0.0.0:484
1
/freeopcua/server/"
)
server
.
set_endpoint
(
"opc.tcp://0.0.0.0:484
0
/freeopcua/server/"
)
# load server certificate and private key. This enables endpoints
# with signing and encryption.
...
...
examples/minimal-server.py
View file @
97a0c3ff
...
...
@@ -10,7 +10,7 @@ if __name__ == "__main__":
# setup our server
server
=
Server
()
server
.
set_endpoint
(
"opc.tcp://0.0.0.0:484
1
/freeopcua/server/"
)
server
.
set_endpoint
(
"opc.tcp://0.0.0.0:484
0
/freeopcua/server/"
)
# setup our own namespace, not really necessary but should as spec
uri
=
"http://examples.freeopcua.github.io"
...
...
opcua/server/server.py
View file @
97a0c3ff
...
...
@@ -57,7 +57,7 @@ class Server(object):
def
__init__
(
self
):
self
.
logger
=
logging
.
getLogger
(
__name__
)
self
.
endpoint
=
urlparse
(
"opc.tcp://0.0.0.0:484
1
/freeopcua/server/"
)
self
.
endpoint
=
urlparse
(
"opc.tcp://0.0.0.0:484
0
/freeopcua/server/"
)
self
.
application_uri
=
"urn:freeopcua:python:server"
self
.
product_uri
=
"urn:freeopcua.github.no:python:server"
self
.
name
=
"FreeOpcUa Python Server"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment