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
fa835f9e
Commit
fa835f9e
authored
Apr 29, 2019
by
oroulet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tools scripts
parent
8abc7212
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
18 additions
and
18 deletions
+18
-18
asyncua/tools.py
asyncua/tools.py
+2
-1
examples/server-example.py
examples/server-example.py
+1
-1
tools/uacall
tools/uacall
+1
-1
tools/uaclient
tools/uaclient
+1
-1
tools/uadiscover
tools/uadiscover
+1
-1
tools/uahistoryread
tools/uahistoryread
+1
-1
tools/uals
tools/uals
+2
-2
tools/uaread
tools/uaread
+2
-2
tools/uaserver
tools/uaserver
+3
-4
tools/uasubscribe
tools/uasubscribe
+2
-2
tools/uawrite
tools/uawrite
+2
-2
No files found.
asyncua/tools.py
View file @
fa835f9e
...
...
@@ -89,7 +89,8 @@ def _require_nodeid(parser, args):
def
parse_args
(
parser
,
requirenodeid
=
False
):
args
=
parser
.
parse_args
()
logging
.
basicConfig
(
format
=
"%(levelname)s: %(message)s"
,
level
=
getattr
(
logging
,
args
.
loglevel
))
#logging.basicConfig(format="%(levelname)s: %(message)s", level=getattr(logging, args.loglevel))
logging
.
basicConfig
(
level
=
getattr
(
logging
,
args
.
loglevel
))
if
args
.
url
and
'://'
not
in
args
.
url
:
logging
.
info
(
"Adding default scheme %s to URL %s"
,
ua
.
OPC_TCP_SCHEME
,
args
.
url
)
args
.
url
=
ua
.
OPC_TCP_SCHEME
+
'://'
+
args
.
url
...
...
examples/server-example.py
View file @
fa835f9e
...
...
@@ -57,7 +57,7 @@ async def main():
# now setup our server
server
=
Server
()
await
server
.
init
()
#server.disable_clock()
server
.
disable_clock
()
#for debuging
#server.set_endpoint("opc.tcp://localhost:4840/freeopcua/server/")
server
.
set_endpoint
(
"opc.tcp://0.0.0.0:4840/freeopcua/server/"
)
server
.
set_server_name
(
"FreeOpcUa Example Server"
)
...
...
tools/uacall
View file @
fa835f9e
...
...
@@ -4,7 +4,7 @@ import sys
import
os
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
".."
))
from
op
cua.tools
import
uacall
from
asyn
cua.tools
import
uacall
if
__name__
==
"__main__"
:
...
...
tools/uaclient
View file @
fa835f9e
...
...
@@ -4,7 +4,7 @@ import sys
import
os
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
".."
))
from
op
cua.tools
import
uaclient
from
asyn
cua.tools
import
uaclient
if
__name__
==
"__main__"
:
...
...
tools/uadiscover
View file @
fa835f9e
...
...
@@ -4,7 +4,7 @@ import sys
import
os
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
".."
))
from
op
cua.tools
import
uadiscover
from
asyn
cua.tools
import
uadiscover
if
__name__
==
"__main__"
:
...
...
tools/uahistoryread
View file @
fa835f9e
...
...
@@ -4,7 +4,7 @@ import sys
import
os
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
".."
))
from
op
cua.tools
import
uahistoryread
from
asyn
cua.tools
import
uahistoryread
if
__name__
==
"__main__"
:
...
...
tools/uals
View file @
fa835f9e
#!/usr/bin/env python
#!/usr/bin/env python
3
import
sys
import
os
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
".."
))
from
op
cua.tools
import
uals
from
asyn
cua.tools
import
uals
if
__name__
==
"__main__"
:
...
...
tools/uaread
View file @
fa835f9e
#!/usr/bin/env python
#!/usr/bin/env python
3
import
sys
import
os
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
".."
))
from
op
cua.tools
import
uaread
from
asyn
cua.tools
import
uaread
if
__name__
==
"__main__"
:
...
...
tools/uaserver
View file @
fa835f9e
#!/usr/bin/env python
#!/usr/bin/env python
3
import
sys
import
os
...
...
@@ -7,9 +7,8 @@ import logging
logging
.
basicConfig
(
level
=
logging
.
DEBUG
)
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
".."
))
from
op
cua.tools
import
uaserver
from
asyn
cua.tools
import
uaserver
if
__name__
==
"__main__"
:
loop
=
asyncio
.
get_event_loop
()
loop
.
run_until_complete
(
uaserver
())
uaserver
()
tools/uasubscribe
View file @
fa835f9e
#!/usr/bin/env python
#!/usr/bin/env python
3
import
sys
import
os
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
".."
))
from
op
cua.tools
import
uasubscribe
from
asyn
cua.tools
import
uasubscribe
if
__name__
==
"__main__"
:
...
...
tools/uawrite
View file @
fa835f9e
#!/usr/bin/env python
#!/usr/bin/env python
3
import
sys
import
os
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
".."
))
from
op
cua.tools
import
uawrite
from
asyn
cua.tools
import
uawrite
if
__name__
==
"__main__"
:
...
...
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