tests/wamp/beremiz.xml
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 21 Sep 2017 17:19:18 +0300
changeset 1824 5765bea3dbd1
parent 1448 20ff66dcc31d
child 1895 876ce4e492a1
permissions -rw-r--r--
make it possible to update XSD schema in project controller after new
target PLC is added or removed.

For example:


...
import targets
targets.targets["PLC"] = {"xsd": os.path.join(self.customBeremizPath, "PLCtarget", xsd),
"class": lambda: PLC_target,
"code": {"plc_PLC_main.c": os.path.join(self.customBeremizPath, "PLCtarget", "plc_PLC_main.c")}
}

from ProjectController import ProjectController, GetProjectControllerXSD
ProjectController.XSD = GetProjectControllerXSD()
<?xml version='1.0' encoding='utf-8'?>
<BeremizRoot xmlns:xsd="http://www.w3.org/2001/XMLSchema" URI_location="WAMP://127.0.0.1:8888#Automation#2534667845">
  <TargetType/>
</BeremizRoot>