1. 11 Nov, 2021 3 commits
    • Julien Prigent's avatar
      [HaClient] Fix test race condition · b5edbdeb
      Julien Prigent authored
      According to the logs of the recent test failure, there's a small window when we test the connection is established where we have a socket connected but don't have the session created yet, and this is throwing exception when trying to disconnect because the renew loop is not yet created.
      
      This is caused by the HaManager (in charge of connecting/reconnecting the clients) running in its own task, thus we're not in the usual await connect(); await disconnect() scenario.
      This can also arguably be fixed at the client level by checking if
      the renew loop exist on disconnect.
      b5edbdeb
    • oroulet's avatar
      68b50bbf
    • oroulet's avatar
      revert and fix Variant array · 1449ba53
      oroulet authored
      1449ba53
  2. 10 Nov, 2021 1 commit
    • Julien Prigent's avatar
      [PyPi] Missing files · 100a711b
      Julien Prigent authored
      The HaClient is missing from the PyPi package:
      
      ```
      [/tmp]> curl https://codeload.github.com/FreeOpcUa/opcua-asyncio/tar.gz/refs/tags/v0.9.91 -s -o v0.9.91.tar.gz
      [/tmp]> tar xvf v0.9.91.tar.gz > /dev/null 2>&1
      [/tmp]> cd opcua-asyncio-0.9.91/
      [/tmp/opcua-asyncio-0.9.91]> python setup.py install > /dev/null 2>&1
      [/tmp/opcua-asyncio-0.9.91]> find build/ -type f |grep -i ha
      build//lib/tests/test_ha_client.py
      build//lib/asyncua/ua/uaprotocol_hand.py
      ```
      
      The build rules only look for the packages via
      (`find_packages`) in setup.py, making the ha client sub-directory a
      package fixes it:
      ```
      [/tmp/opcua-asyncio-0.9.91]> rm -rf build/
      [/tmp/opcua-asyncio-0.9.91]> cat asyncua/client/ha/__init__.py
      """
      Pure Python OPC-UA library
      """
      
      from .ha_client import HaClient, HaMode, HaSecurityConfig, ConnectionStatesing
      [/tmp/opcua-asyncio-0.9.91]> python setup.py build > /dev/null 2>&1
      [/tmp/opcua-asyncio-0.9.91]> find build/ -type f |grep -i ha
      build//lib/tests/test_ha_client.py
      build//lib/asyncua/ua/uaprotocol_hand.py
      build//lib/asyncua/client/ha/__init__.py
      build//lib/asyncua/client/ha/common.py
      build//lib/asyncua/client/ha/ha_client.py
      build//lib/asyncua/client/ha/reconciliator.py
      build//lib/asyncua/client/ha/virtual_subscription.py
      ```
      
      Changing the HaClient test import path to ensure no regression.
      100a711b
  3. 05 Nov, 2021 11 commits
  4. 03 Nov, 2021 2 commits
    • oroulet's avatar
      new release v0.9.91 · 6b0c12d8
      oroulet authored
      6b0c12d8
    • Curious Crook's avatar
      Add client low-level file system functionality (#696) · f57477ae
      Curious Crook authored
      * Add low-level file system functionality
      
      * Added examples for the use of ua_file_transfer.py
      
      In the following you will find examples for the use of the
      classes UaFile and UaDirectory and how to handle typical uaerrors.
      see: ./asyncua/client/ua_file_transfer.py.
      
      The OPC UA File Transfer specification can be found here:
      https://reference.opcfoundation.org/Core/docs/Part5/C.1/
      
      * pylint optimized - ua_file_transfer.py 
      
      pylint optimization of file ua_file_transfer.py.
      => Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
      
      * pylint optimized - client_ua_file_transfer.py
      
      pylint optimization of client_ua_file_transfer.py.
      => Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
      Co-authored-by: default avatarCurious Crook <privat@nowhere.org>
      f57477ae
  5. 01 Nov, 2021 1 commit
  6. 31 Oct, 2021 1 commit
  7. 26 Oct, 2021 2 commits
  8. 25 Oct, 2021 4 commits
  9. 09 Oct, 2021 2 commits
  10. 07 Oct, 2021 13 commits