HI!
I have an URCap that basically lets the user choose a value and sends this to a Python daemon via XMLRPC.
My problem is that after sending the data to the daemon the URCap does not end; it just stays in this state.
I’ve tested this via terminal and the communication with the daemon works perfectly (even through the never ending URCap).
The generateScript method of my programNodeContribution looks like this:
public void generateScript(ScriptWriter writer) {
writer.assign(XMLRPC_VARIABLE, “rpc_factory("xmlrpc", "http://127.0.0.1:” + PORT + “/RPC2")”);
writer.appendLine(XMLRPC_VARIABLE + “.set_pictureindex("” + getSelectedButton() + “")”);
}
set_pictureindex is a method registered trhrough the daemon that accepts a value and returns True afterwards.
getSelectedButton just returns an integer.
I would be very thankful for any help as i am out of ideas how to fix this.
Thank you very much in advance!
Mia
Edit:
I’ve added some textmsg to my script and found out that it somehow restarts and then stops in the middle of nowhere:
public void generateScript(ScriptWriter writer) {
writer.assign(XMLRPC_VARIABLE, “rpc_factory("xmlrpc", "http://127.0.0.1:” + PORT + “/RPC2")”);
writer.appendLine(“textmsg(1)”);
writer.appendLine(XMLRPC_VARIABLE + “.set_pictureindex("” + getSelectedButton() + “")”);
writer.appendLine(“textmsg(2)”);
}
The log looks like this:
the line “writer.appendLine(‘textmsg(1)’)” somehow must’ve been called twice.
Nothing happens after this.