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