
Part 5 – GPIO AT Commands
Universal IP AT Commands Reference Guide 93
Stack
Function: The desired stack function to be specified on a GPIO trigger. The stack function must be
properly configured; i.e., for a sendmail function, all proper sendmail items must be configured.
Values: 0 - Disabled (The GPIO will not trigger)
1 - #SENDMAIL1
2 - #SENDMAIL2
3 - #SENDMAIL3
4 - #PUTMAIL
5 - #GETMAIL
6 - #LTCPSTART=1
7 - #OTCP=1
8 - #OUDP=1
9 - #LUDPSTART=1
Hangup: Determines whether to disconnect from the network after GPIOs have been processed.
Values: 0 - Physical connection disconnects when all GPIOs have been processed
1 - Physical connection stays connected.
2 - Physical connection disconnects when all GPIOs have been processed; suppress
responses
3 - Physical connection stays connected; suppress responses
Default: 1,1,0,0,0,0,x
2,1,0,0,0,0,x
3,0,0,0,0,0,x
4,0,0,0,0,0,x
5,3,0,0,0,0,x
Note: The final number (represented by ‘x’) is variable and not supported at this time.
Example: AT#GPIO=1,0,1,180,1,0
GPIO 1 would be configured as a Digital Input with internal pullup (0).
A positive voltage will trigger the GPIO (1).
A Debounce time of 180 ms (180) will be used.
#SENDMAIL1 will be called if the GPIO triggers (1).
After processing the GPIO, the physical connection will be disconnected (0) and all responses
will be printed to the user.
Komentarze do niniejszej Instrukcji