9.21.1.1 +MDNSC

This command is used to read or set the mDNS configuration.

This command is a configuration command which supports setting and getting parameter values.
The behavior of configuration commands is described in general in the Configuration Commands section.

Security – Default Security for the command is: GGGG

Table 9-240. Command Syntax

Command

Description

Security

AT+MDNSCQuery configuration list

GGGG

AT+MDNSC=<CONF>Query all configuration elements

GGGG

AT+MDNSC=<CONF>,<ID>Query a single element

GGGG

AT+MDNSC=<CONF>,<ID>,<VAL>Set a single element

GGGG

Table 9-241. Command Parameter Syntax

Parameter Name

Type

Description

<CONF>IntegerConfiguration number

Value is 1

<ID>

Integer

Parameter ID number

<VAL>

Integer String Byte Array

Parameter value

Table 9-242. Response Syntax

Response

Description

+MDNSC:<CONF>,<CONF>

List response

+MDNSC:<ID>,<VAL>

Read response
Table 9-243. Response Element Syntax

Element Name

Type

Description

<CONF>IntegerConfiguration number

Value is 1

<ID>

Integer

Parameter ID number

<VAL>

Any

Parameter value

Table 9-244. Configuration Parameters

ID

Name

Type

Description

Security

1

<ENABLED>

Bool

Is service enabled

GGGG

2

<STARTED>

Bool (Read Only)

Has service started

GGGG

3

<NAME>

String

Service name

Maximum length is 32

GGGG

4

<TYPE>

String

Service type

Maximum length is 32

GGGG

5

<PORT>

Unsigned Integer

Service port

GGGG

6

<TXT>

String

Service TXT field

Maximum length is 128

GGGG