I have a problem with setting a value to a node in opcua from a python client. Infact I get an error when I use set_node(intValue) I obtain a Bad type mismatch. The code is:
time.sleep(1)
nodo = client.get_node("ns=1;i=68")
nodo.set_value(0)
time.sleep(1)
nodo = client.get_node("ns=1;i=68")
nodo.set_value(1)
And the error that I obtain is: opcua.ua.uaerrors._auto.BadTypeMismatch: "The value supplied supplied for the attribute is not the same type as the attribute"s value." (BadTypeMismatch)