<path&queryopts>
Default: /fw.fota. Document path and optional query
arguments. If a secure FOTA is required, the extension of the
file needs to be “.sfota”.
<port>
Default 80 (if TLS=0) or 443 (if TLS>0).
<TLS>
Default: 0. Values range: 0 → unsecured; 1 → autodetect; 2
→ TLS
<username>
Default: none.
<passwd>
Default: none.
6.15
AT+S.GPIOC
Command used to configure the function of the various GPIOs on the module. GPIOs can be configured as inputs
or outputs. When used as inputs, they generate an interrupt when the state changes that can be configured on
the signal edge.
Usage:
1)
AT+S.GPIOC=<number>,out<cr>
to configure a gpio as an output
2)
AT+S.GPIOC=<number>,in,
[<interrupt>]<cr>
to configure a gpio as an input
Parameters:
<number>
GPIO Number (see Datasheet)
<interrupt>
Default: No interrupt (turn it off, if enabled). It can assume one
of the following values:
•
R → Rising edge
•
F → Falling edge
•
B → Both rising and falling edges
6.16
AT+S.GPIOR
AT+S.GPIOR is used to read the value and the direction of a previously-configured GPIO.
Usage:
AT+S.GPIOR=<num><cr>
Parameters:
<num>
specifies the GPIO to read
Result:
AT-S.Value:<num>:<level>:<direction>
UM2114
AT+S.GPIOC
UM2114
-
Rev 3
page 17/66