Also, if you want to set things, not just get (like change a digital output), then you will need to fire the
COM_CommandReceived event either by calling it directly if your language supports it, OR by calling
Server_SendBackCommandEvent which takes a string "
command"as a parameter.
The string
command is interpreted by MDX as specified in the configuration file in the COM section.
If your COM section looks like this:
Code:
<com status="enabled">
<commands>
<command id="myCustomCOMCommand" minimum_delta_vote_time="100">
<do function="trigger output" functionTargetID="Digital Output 0" vote_opinion="on" vote_priority="medium"></do>
<do function="trigger output" functionTargetID="Digital Output 1" vote_opinion="on" vote_priority="medium"></do>
</command>
</commands>
</com>
So if you call
COM_CommandReceived("myCustomCOMCommand"); then MDX will interpret it and Turn on Digital Output 0 and Digital Output 1