AT Command

Description

AT+SGPIO AT command is used  control the GPIOs - level, function Iinput or output, read.


Support

Simcom Module Tutorial

Examples

//How is AT+SGPIO command supported?
AT+sgpio=?

+SGPIO: (0-1),(1-12),(0-2),(0-1)

OK

//Set the GPIO 4 as input and set the value to 0.
AT+sgpio=0,4,0,1

OK

//Now read the value of GPIO 4
AT+sgpio=1,4

+SGPIO: 0

OK

KeywordsAT+SGPIO syntax, examples, parameters, error, input, response.

With Online AT Command Tester tool, you can test this feature.

With Online AT Command Tester tool, you can also get device diagnostic information easily,