Commands structure
All the commands have the same structure, based on XML language.
The structure is:
<command name="COMMAND" Module="[Integer]" [Optional Parameters] />
In a cases, entire XML file should be integrated inside the standard structure:
<command name="COMMAND" >[XML FILE]</command>
These are the commands have this structure:
There are two different kind of commands:
Synchronous commands
When a synchronous command is received, if it is valid, the system reply with
<command name="COMMAND NAME" valid="true" Module="[Integer]" [Command reply informations] />
Asynchronous commands
When a synchronous command is received, if it is valid, the system reply with
<command name="COMMAND NAME" valid="true" Module="[Integer]" />
When the command is executed, the system will send a
<command name="COMMAND NAME" executed="true" Module="[Integer]" [Command reply informations] />
Command not valid
If a command is not valid, the system reply immediately with
<command valid="false" />
and no status are changed.
Missing parameter
If in a command a mandatory parameter is miss, the system reply with
<command valid="false" error ="missing parameter" />
and no status are changed.
Command execution error
If the execution of a command raise an error, the system reply with
<command name="COMMAND NAME" executed="false" [Command error informations] />
and the module generate the error goes in Fault Status
Created with the Personal Edition of HelpNDoc: Full-featured Help generator