# DIAG Service

# DIAG Service

This module includes configuration variables for the DIAG service.

## Summary

| ### Macros ||
|---|---|
| `https://openthread.io/reference/config/group/config-diag#group__config-diag_1ga55fc4bdb31d7e45bf4ef5b8be9892d06 32` | Define OpenThread diagnostic mode max command line arguments. |
| `https://openthread.io/reference/config/group/config-diag#group__config-diag_1ga2e5f9fdde9614caf706beffe382ac917 256` | Define OpenThread diagnostic mode command line buffer size in bytes. |
| `https://openthread.io/reference/config/group/config-diag#group__config-diag_1gae1e107673384035df9dd3c263fccb8d0 0` | Define to 1 to enable Factory Diagnostics support. |
| `https://openthread.io/reference/config/group/config-diag#group__config-diag_1ga21d1cbe1e3348bbd5daf8b3b642c8304 256` | Define OpenThread diagnostic mode output buffer size in bytes. |

## Macros

### OPENTHREAD_CONFIG_DIAG_CMD_LINE_ARGS_MAX

```
 OPENTHREAD_CONFIG_DIAG_CMD_LINE_ARGS_MAX 32
```
Define OpenThread diagnostic mode max command line arguments.

### OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE

```
 OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE 256
```
Define OpenThread diagnostic mode command line buffer size in bytes.

### OPENTHREAD_CONFIG_DIAG_ENABLE

```
 OPENTHREAD_CONFIG_DIAG_ENABLE 0
```
Define to 1 to enable Factory Diagnostics support.

### OPENTHREAD_CONFIG_DIAG_OUTPUT_BUFFER_SIZE

```
 OPENTHREAD_CONFIG_DIAG_OUTPUT_BUFFER_SIZE 256
```
Define OpenThread diagnostic mode output buffer size in bytes.

## 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).