python-opcua icon indicating copy to clipboard operation
python-opcua copied to clipboard

Unable to change variable value to True

Open Zouzou1988 opened this issue 2 years ago • 12 comments

Hello Dears, I can read data from a server (opc ua device) without any problem. However, i can't write any variables. Here is my code:

    def set_opcua_data():
        try:
            node = client.get_node("ns=3; i=16847616")
            node.set_value(True)
        except Exception as er:
            print(f"*** Failure: {str(er)}")

Here is the error:

*** Failure: "The server does not support writing the combination of value, status and timestamps provided."(BadWriteNotSupported)

When i use Ua expert, i can read and write to the server!

Your help please :)

Zouzou1988 avatar Oct 31 '23 15:10 Zouzou1988