User Manual
1 - dummy value
wait for response OK
The #GPIO setting for all GPIO except from GPIO6 is not saved and will be lost on power
off, so at start-up repeat pin initialization commands.
At start-up all the GPIOs except from GPIO6 are configured by default as INPUT, but the
setting for GPIO6 instead is maintained even after a shutdown to permit alarm feature to work
always.
For example:
1- Let us assume you want to set GPIO4 pin as Input:
command
AT#GPIO=4,0,0<cr>
response:
OK
In this case, the GPIO4 pin was successfully put in input direction.
After having set-up the GPIO pin direction you can query the input status of an INPUT pin or
set the output status of an OUTPUT pin.
To query for the pin status:
send command AT#GPIO=<pin>,2<cr>
where:
<pin> is the GPIO pin number at which the command applies:
1 - GPIO1 6 - GPIO6
2 - GPIO2 7 - GPIO7
3 - GPIO3 8 - GPIO8
4 - GPIO4 9 - GPIO9
5 - GPIO5 10 - GPIO10
wait for response in the format:
#GPIO: <dir>,<stat>
OK
where: