I have done it successfully before (but I don't have all the differents code snippets of that anymore), but I just can't make it work now.
My protocol is :
- Code: Select all
<?xml version="1.0"?>
<PropertyList>
<generic>
<input>
<line_separator>tab</line_separator>
<var_separator>,</var_separator>
<chunk>
<name>id</name>
<node>/controls/in/id</node>
<type>string</type>
</chunk>
<chunk>
<name>value</name>
<node>/controls/in/value</node>
<type>string</type>
</chunk>
</input>
</generic>
</PropertyList>
I add this line when starting FG :
- Code: Select all
--generic=socket,in,60,127.0.0.1,5400,udp,myprotocol
and in my program i send that message multiple times (it's Python) :
- Code: Select all
socket.sendto("a,b", ('127.0.0.1',5400))
But FlightGear is ignoring the messages. I have checked everything : the messages are effectively sent and received (used a network sniffer), the custom properties are set in the Property Tree, meaning that the protocol has been loaded. But they stay forever empty.
I have done exactly that before (with other properties) and it worked like a charm without any problems. It's getting me mad.
I have tried to change the name of the properties and the port to no avail.
Thank you for your time (and my newfound sanity if you can solve this )