# - [smarthome](https://developers.home.google.com/reference/local-home/modules/smarthome.html).
- [IntentFlow](https://developers.home.google.com/reference/local-home/modules/smarthome.intentflow.html).
- MdnsScanData

Data payload returned with an mDNS scan result.
For mDNS discovery, the scan data contains fields from the SRV and TXT
records advertised by the local device via
[DNS-Based Service Discovery
(DNS-SD)](https://tools.ietf.org/html/rfc6763).

    const identifyHandler = (request: IntentFlow.IdentifyRequest):
      Promise<IntentFlow.IdentifyResponse> => {

        // Obtain scan data from protocol defined in your scan config
        const device = request.inputs[0].payload.device;
        const scanData = device.mdnsScanData;

        // TXT key/value pairs for this device
        // Extract application-specific parameters
        const localDeviceId = scanData.txt.myParameter;
        ...
      };

## Index

### Properties

- [data](https://developers.home.google.com/reference/local-home/interfaces/smarthome.intentflow.mdnsscandata#data)
- [name](https://developers.home.google.com/reference/local-home/interfaces/smarthome.intentflow.mdnsscandata#name)
- [protocol](https://developers.home.google.com/reference/local-home/interfaces/smarthome.intentflow.mdnsscandata#protocol)
- [serviceName](https://developers.home.google.com/reference/local-home/interfaces/smarthome.intentflow.mdnsscandata#servicename)
- [txt](https://developers.home.google.com/reference/local-home/interfaces/smarthome.intentflow.mdnsscandata#txt)
- [type](https://developers.home.google.com/reference/local-home/interfaces/smarthome.intentflow.mdnsscandata#type)

## Properties

### data

data: string\[\] Raw additional TXT data advertised by the service.

### name

name: string Instance name of the service.

### protocol

protocol: string Protocol used by the service. Typically either `tcp` or `udp`.

### serviceName

serviceName: string Fully qualified name of the discovered service.

### txt

txt: {} Key/value pairs advertised in the TXT data of the service.

#### Type declaration

-

  ##### \[key: string\]: string

### type

type: string Type of the service.