1
0
mirror of https://github.com/FreeOpcUa/opcua-asyncio synced 2025-10-29 17:07:18 +08:00
Commit Graph

1371 Commits

Author SHA1 Message Date
oroulet
3063aff326 bit better sync tests 2019-03-03 08:06:07 +01:00
oroulet
cc26057d50 add missing sync methods 2019-03-02 19:26:56 +01:00
oroulet
22c2adbd15 port most command line tools 2019-03-02 19:21:53 +01:00
oroulet
f6f5ef4abf remove not use tests files 2019-03-02 19:21:27 +01:00
oroulet
528a221972 test sync api against prosys and put code in example 2019-03-02 17:55:01 +01:00
oroulet
4b85a3f122 Add default ref type when a parent is specified in XML without ref type 2019-02-27 08:45:44 +01:00
oroulet
681bcd6230 when parsing a string , make sure we always handle empty case 2019-02-27 08:45:17 +01:00
oroulet
ec7832ab29 add sync/client-example.py and make it work 2019-02-25 21:12:55 +01:00
oroulet
56cf68dfc5 make sure the correct event loop is used in the entire application 2019-02-25 20:07:16 +01:00
oroulet
ef9e89f148 add sync/client-example.py and make it run 2019-02-25 20:07:16 +01:00
oroulet
1fb9d6bcd6 add sync/client-minimal.py and sync/server-minimal.py examples and make them work 2019-02-25 20:07:16 +01:00
oroulet
7a949baa3b add sync Node object and add small test 2019-02-25 20:07:16 +01:00
oroulet
d5b0f7b077 add minimal sync Server and make test for it 2019-02-25 20:07:16 +01:00
oroulet
098b35d643 directly start and stop thread_loop 2019-02-25 20:07:16 +01:00
oroulet
90ef44bf90 draft sync API and necessary changes 2019-02-25 20:07:16 +01:00
oroulet
3fe990fe80 new release 2019-02-23 14:48:59 +01:00
oroulet
27b2378e9b add __bool__ to Buffer 2019-02-23 14:43:57 +01:00
oroulet
d33e14834a pylint and yapf in server, fix a few potential bugs 2019-02-23 14:36:57 +01:00
oroulet
c7ba7c06ae pylint over client code 2019-02-23 13:36:13 +01:00
oroulet
6267993860 disable sqlite tests, something is broken 2019-02-23 13:20:35 +01:00
oroulet
c7b1aef877 rename opcua-asyncua 2019-02-23 11:47:12 +01:00
oroulet
7b07e113b3
Merge pull request #15 from FreeOpcUa/testing
update some examples, make them work and add several missing async methods
2019-02-22 11:22:13 +01:00
oroulet
9f337fbb1c complete port of server-example.py and tested with prosys client 2019-02-21 15:41:04 +01:00
oroulet
aaccc98572 port and check client_to_prosys.py example 2019-02-21 15:02:07 +01:00
oroulet
d0e49b1e80 create, cancel and await session task correctly 2019-02-21 10:04:12 +01:00
oroulet
7e4631ae4d add pytest-asyncio 2019-02-20 21:51:31 +01:00
oroulet
8da435dc78 update .travis.yml file 2019-02-20 21:45:18 +01:00
oroulet
462b7e1c08 better fix for ids not being a list 2019-02-20 21:45:18 +01:00
oroulet
d5420d79bb fix strange bug, that should have had effect before... 2019-02-20 21:44:27 +01:00
oroulet
d1a2750128 fix big bug in handling of receiving buffer, many more tests working 2019-02-20 21:44:27 +01:00
oroulet
c5ae756182 remove InternalServer.subscriptions it was useless 2019-02-20 21:44:27 +01:00
oroulet
13b148e597 fix typo 2019-02-20 21:44:27 +01:00
oroulet
9591355706 update some examples, make them work and add several missing async methods 2019-02-20 21:44:27 +01:00
Christian Bergmiller
7b2538d0c3 fix InternalSession.activate_session ServiceError namespace 2019-02-17 19:19:10 +01:00
Christian Bergmiller
1211741500 type hints 2019-02-17 12:33:25 +01:00
oroulet
1fb105e434 new release 2019-02-17 11:08:32 +01:00
oroulet
b36cf6dd65 make Node.delete() return the list of deleted nodes 2019-02-16 20:42:53 +01:00
oroulet
e187752d9d remove unnecessary assert. the length of results might be different from the length of arguments, for example for delete since we are recursive 2019-02-16 20:40:37 +01:00
oroulet
e298978143 print what node is giving issues when exporting 2019-02-16 20:34:18 +01:00
oroulet
6990caeada Surface send_hello server errors from @urianchang 2019-02-16 16:14:42 +01:00
oroulet
2b462740d1 fix event async stuff 2019-02-15 10:51:55 +01:00
Dario Ernst
53e592373c Adapt tests to new event-emitting-node behavior / API 2019-02-15 08:50:46 +01:00
Dario Ernst
5106825a3f Separate events’ emitting nodes from their SourceNodes
!! Warning, API-breaking changes!

When closely reading the spec, events are emitted by one node, and refer
to their SourceNode in an attribute — the SourceNode can and often will
be different from the emitting node.

Until now, python-opcua assumed these two to be identical. This commit
tries to straighten this situation.

To that end, we introduce new parameters in the eventgenerator,
Event-class and all children thereof. The EventGenerator will now try to
honor emitting nodes given to it, but still handle and add SourceNodes.
The InternalSubscription finally serializing and emitting the event is
adapted to this new behavior.
2019-02-15 08:50:25 +01:00
Dario Ernst
a2fbf4b707 Fix various whitespace problems 2019-02-15 08:38:33 +01:00
brubbel
f377e69933 fix: Setting LocalizedText.Text attribute does not update Encoding
See https://github.com/FreeOpcUa/python-opcua/issues/755
This fixes inconsistent Encoding types when performing
y=variant_to_binary(x) -> x2=variant_from_binary(y) on
auto-generated attributes in the standard address space.
2019-02-15 08:36:12 +01:00
Volodymyr Kozachynskyi
f36bef0687 now dv returns corrent timestamps 2019-02-15 08:32:17 +01:00
oroulet
f86c836b04 add missing certificate member in server 2019-02-14 16:13:08 +01:00
brubbel
d71e8e3a5b moved certificate variable from InternalServer to Server class
Certificate is only used at higher Server level, no need to store in InternalServer
2019-02-14 16:12:38 +01:00
brubbel
3f868292a0 removed deprecated to_binary() from Variant
to_binary() was replaced by variant_to_binary as of commit e1067bac
2019-02-14 16:07:19 +01:00
Dario Ernst
6c534b9c41 Delete datachange_callbacks only on copy of dict to delete them from
Deleting a node on which any client holds a datachange-notification
subscription, NodeManagementService._delete_node_callbacks fails because
the size of the dictionary it loops over changes. Here, we solve this by
not using the .items() iterator, but making a copy in form of a list
first ….
2019-02-14 15:54:33 +01:00