Get AT command response
问题 I am using an Arduino Uno with a sim900 gps/gprs module and I'm using at commands, how can I get the response of at command (i.e OK, ERROR) so that I can do something if response == "OK" or response == "ERROR" 回答1: You can use following code to read response from SIM900 GSM Module just after issuing AT command. char response[200]; for(int i = 0 ; Serial.available() > 0 && i<200 ; i++) { response[i++] = Serial.read(); } After reading response you can use strstr() function to check whether it