User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
16GPIO
Page 195 of 401
16.4GPIO set command +UGPIOW
+UGPIOW
Modules All products
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full No No No < 10 s +CME Error
16.4.1Description
Sets ("writes") the output of the specified GPIO pin, but only if it is configured in output function (see the
+UGPIOC AT command to set the pin as output).
16.4.2Syntax
Type Syntax Response Example
Set AT+UGPIOW=<gpio_id>,<gpio_out_
val>
OK AT+UGPIOW=20,1
OK
Test AT+UGPIOW=? +UGPIOW: (list of supported <gpio_
id>s),(list of supported <gpio_out_
val>s)
OK
+UGPIOW: (20, 21),(0-1)
OK
16.4.3Defined values
Parameter Type Description
<gpio_id> Number GPIO pin identifier: pin number
See the GPIO mapping for the available GPIO pins, their mapping and factory-
programmed values on different u-blox cellular modules series and version.
<gpio_out_val> Number GPIO value. Allowed values are 0 and 1.
16.4.4Notes
The command works only if the parameter <gpio_mode> of the +UGPIOC AT command is set to 0.