You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having problems with using the node.set_value() function. I keep getting a "The value supplied for the attribute is not of the same type as the attribute"s value."(BadTypeMismatch) error. I can change the variable value with the Softing OPC UA Client software.
I tried all sorts of things:
dv = 1.0
self.start_flag_node.set_value(dv)
@schroeder- thank you. I am still using the old library. Do you know if i have to make a new certificate for my python client if i'm going to use the new one?
I am having problems with using the node.set_value() function. I keep getting a "The value supplied for the attribute is not of the same type as the attribute"s value."(BadTypeMismatch) error. I can change the variable value with the Softing OPC UA Client software.
I tried all sorts of things:
dv = 1.0
self.start_flag_node.set_value(dv)
dv = opcua.ua.DataValue(opcua.ua.Variant(3.0, opcua.ua.VariantType.Double))
dv.ServerTimestamp = None
dv.SourceTimestamp = None
self.start_flag_node.set_value(dv)
dv = opcua.ua.Variant(3.0, opcua.ua.VariantType.Double)
self.start_flag_node.set_value(dv)
and probably some others.
No matter what I do I still get the same error. The DataType of variable that the Softing OPC UA Client detects this node to have is a Double (i=11).
The text was updated successfully, but these errors were encountered: