# TCP/IP Outputs

The TCP/IP outputs are formatted as a comma-separated string. The format is the following:

    ID,IS_PASS,RESULT_FORMAT_VERSION,APPLICATION_CODE,CURRENT_PROGRAM,ERROR_CODE,RESULT_DATA

The RESULT_FORMAT_VERSION defines the format of the application-specific RESULT_DATA. For the Anomaly Detector, the 2-Class and 4-Class Classifier, the format of the RESULT_DATA is CLASS_ID,SCORE,CLASS_NAME. For the Counter app, the format is COUNT. The result string is terminated with a newline and a carriage return ("\n\r").

For the 4-Class Classifier, the CLASS_NAME is the name configured by the user and can contain Unicode characters. In this case, the result string needs to be encoded as UTF-8, in all other cases the result string is limited to ASCII characters.

The commands are a series of ASCII characters terminated by a single newline. The unrecognized commands, or additional terminators are discarded and ignored. The SET_PROGRAM[#] command changes to the program slot is indicated by the #. The # is an integer value and can be zero-padded or not. This means that both the SET_PROGRAM[01] and SET_PROGRAM[1] are allowed.

The text name for the trigger command is configurable. Characters are limited to the printable ASCII characters. Unicode text is not allowed.