Xmlencoding, Xmleoltype, Xml remote control interface – Wavecom W-RCI (Remote Control) V8.7.0 User Manual

Page 61: Data package protocol

Advertising
background image

XML SDK V8.7.0 Remote Control Interface

TCP/IP Interface

53

typedef struct {
bool bHeader;
bool bIndent;
XMLEncoding Encoding;
XMLEOLType EOL;
} XMLFormatting;

bHeader
If true, the XML header ("<?xml version=…”) is sent, otherwise not.
bIndent
If true, the XML message has indent depending on the tags, otherwise not.
Encoding
The encoding of the XML message.
EOL
Type of end-of-line; used if bIdent is true.

Note: XMLFormattingC has the same format, except that the bool type is replaced by BOOL for C-
compatibility.

XMLEncoding

typedef enum XMLEncoding {
Encoding_NONE,
Encoding_UTF8,
Encoding_UTF16,
Encoding_UNICODE
};

Possible encodings are NONE (ASCII), UTF-8 (recommended), UTF-16 and UNICODE.

Note: “NONE” should not be used as messages exist containing Unicode characters and it is automatically
replaced with “UTF-8”.

XMLEOLType

typedef enum XMLEOLType {
EOL_CRLF,
EOL_LF
};

Valid end-of-line types are EOL_CRLF (Carriage Return + Line Feed) or EOL_LF (Line Feed).

XML Remote Control Interface

This section is directed at client application programmers wishing to avoid using any of the client interfac-
es provided by WAVECOM.

Note: If you use this interface make sure that the server is running without encryption and compression.
These features may be enabled or disabled using the WAVECOM ServerControl application.

The application runs on Windows systems and therefore the byte order is little endian. If you develop for a
system that uses big endian byte order, this issue has to be considered.

Data Package Protocol

16 Bytes

n Bytes

4 Bytes

Header

Data

Synchronize ID

Data ID

Length

4 Bytes

4 Bytes

4 Bytes

Count

Advertising
This manual is related to the following products: