Stack Overflow Asked on December 9, 2021
i trying write value with this example :
opc ua client to server
But i have this error :
Exception "unhandled opcua.ua.uaerrors._auto.BadTypeMismatch"
"The value supplied for the attribute is not of the same type as the attribute"s value."(BadTypeMismatch)
File: C:UserslariAppDataLocalProgramsPythonPython38libsite-packagesopcuauauatypes.py, Line: 218
someone can help me please
thank you so much
I find o/
this link help me : https://github.com/FreeOpcUa/opcua-asyncio/issues/30
dv = ua.DataValue(ua.Variant(122, ua.VariantType.Int32))
dv.ServerTimestamp = None
dv.SourceTimestamp = None
trou.set_value(dv)
I hope my adventure can help others ;)
Answered by Christophe on December 9, 2021
This is telling you the server is expecting a value with a different datatype than the one you wrote.
Answered by Kevin Herron on December 9, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP