# AT+QAGPIO

This command takes effect immediately and automatically saves the parameter configuration. The maximum response time is 300 ms. Below is a guide to executing the AT+QAGPIO command under the default Mobile-Data protocol with MMCLI command sets.

## Test Command

```
AT+QAGPIO=?
```

{% code title="Response" %}

```
+QAGPIO: <type>,<gpio_num>,(supported <value> list)
```

{% endcode %}

## Set Command

```
AT+QAGPIO=<type>,<gpio_num>,<value>
```

{% code title="Response" %}

```
''
```

{% endcode %}

> &#x20;Example:
>
> mmcli -m 2 --command=AT+QAGPIO=?\
> response: '+QAGPIO: (0,1),\<GPIO>,(0,1)'
>
> mmcli -m 2 --command=AT+QAGPIO=0,105,1      \
> response: ' '
>
> mmcli -m 2 --command=AT+QAGPIO=1,8,0\
> response: ' '&#x20;

## Parameters

| Parameter    | String  | Description                                               |
| ------------ | ------- | --------------------------------------------------------- |
| \<type>      | Integer | <p>Set AP or PMU<br>0: AP<br>1: PMU</p>                   |
| \<gpio\_num> | Integer | GPIO number                                               |
| \<value>     | Integer | <p>GPIO output level<br>0: Low level<br>1: High level</p> |

Note: The range of PMU GPIO is 1 to 11.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://how.router.works/dev/command/at-5g/at-qagpio.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
