Digicom pocket GSM User Manual page 56

Dual-band modem
Table of Contents

Advertisement

PocketGSM
AT+WIOR
Read GPIO value
This command reads the current state (Reset or Set) of an Input. It is not possible to read
the state of an Output. Trying to read an Output status will cause an ERROR.
Command
AT+WIOR=<Index>
<Index>
Digital Input index (values: 0, 3, 4, 5)
AT+WIOR=3
Reads the Digital Input 1 status
AT+WIOR=0
Reads the Digital Input 2 status
AT+WIOR=4
Reads the Digital Input 3 status
AT+WIOR=5
Reads the Digital Input 4 status
<Val> Digital Input state
0
Reset
1
Set
AT+WIOW Write GPIO value
This command writes the state (Reset o Set) of an Output. It is not possible to write the
state of an Input. Trying to write an Input status will cause an ERROR.
By default (after a power off/on) the Output contact is set by AT+WIOM command.
Command
AT+WIOW=<Index>,<Val> OK / ERROR
<Index>
Output index (values 1, 2)
AT+WIOW=1,<Val>
AT+WIOW=2, <Val>
<Val>
GPIO state
0
Reset
1
Set
Possible answers
+WIOR: <Val>
Possible answers
Writes the Output 1 status
Writes the Output 2 status
4.36
AT Commands
Action
Reads the current status
Action
Writes the output status

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents