Commit 0141aca8 authored by Maxime Puys's avatar Maxime Puys Committed by ORD

Added: Support for Double and Float types in XML.

Added support for Double and Float value extensions in XML importer.
parent 1c6e5d26
......@@ -13,6 +13,8 @@ from opcua.common import xmlparser
def ua_type_to_python(val, uatype):
if uatype.startswith("Int") or uatype.startswith("UInt"):
return int(val)
elif uatype in ("Double", "Float"):
return float(val)
elif uatype in ("String"):
return val
elif uatype in ("Bytes", "Bytes", "ByteString", "ByteArray"):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment