MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / enum_to_stringlist

Function enum_to_stringlist

examples/server-enum.py:34–38  ·  view source on GitHub ↗
(a_enum)

Source from the content-addressed store, hash-verified

32
33# helper method to automatically create string list
34def enum_to_stringlist(a_enum):
35 items = []
36 for value in a_enum:
37 items.append(ua.LocalizedText(value.name))
38 return items
39
40if __name__ == "__main__":
41 # setup our server

Callers 1

server-enum.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected