# Mesh Diagnostic

# Mesh Diagnostic

This module includes configuration variables for Mesh Diagnostic.

## Summary

| ### Macros ||
|---|---|
| `https://openthread.io/reference/config/group/config-mesh-diag#group__config-mesh-diag_1ga02ce5a00e6177d2ad008120a72945a5e OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE` | Define to 1 to enable Mesh Diagnostic module. |
| `https://openthread.io/reference/config/group/config-mesh-diag#group__config-mesh-diag_1gacc695df90992660a0393de9708aee411 5000` | Specifies the timeout interval in milliseconds waiting for response from router during discover. |

## Macros

### OPENTHREAD_CONFIG_MESH_DIAG_ENABLE

```
 OPENTHREAD_CONFIG_MESH_DIAG_ENABLE OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE
```
Define to 1 to enable Mesh Diagnostic module.

By default this feature is enabled if device is configured to act as Border Router.

### OPENTHREAD_CONFIG_MESH_DIAG_RESPONSE_TIMEOUT

```
 OPENTHREAD_CONFIG_MESH_DIAG_RESPONSE_TIMEOUT 5000
```
Specifies the timeout interval in milliseconds waiting for response from router during discover.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).