SIM900 AT Commands response parsing

前端 未结 3 1618
梦如初夏
梦如初夏 2020-12-18 16:16

i am using sim900 gps/gprs module shield connected to an Arduino Uno, how will i be able to parse the response of my AT commands? Or how will i be able to remove the 1st lin

3条回答
  •  臣服心动
    2020-12-18 17:02

    The first line AT+CMGL="ALL" seems to be the echo. You can disable it by sending ATE0 to your module in your setup function.

    As for the rest of the data, it all have the same format. You can easily write your parser using different string manipulation functions.

提交回复
热议问题