MaJerle / GSM_AT_commands_parser

Platform independent, ANSI C AT commands parser for SIMcom GSM modules
171 stars 95 forks source link

Parse CPIN string offset not correct #7

Closed GeeMing closed 7 years ago

GeeMing commented 7 years ago

Hi Tilen, My device is AI-Thinker's A7 module, and I found that when request a command "AT+CPIN?" it returns "+CPIN:READY", but in line 1062 on file "gsm.c", I think the 2nd parameter should be "str + 6" instead of "str + 7". But maybe your device return is diffrent from mine. I don't have other GSM device to test currently, would you like to have a look?

Regards,
GeeMing.
MaJerle commented 7 years ago

SIM800 or SIM900 returns like +CPIN: READY with space between color na response value. Library is for SIMcom modules. I don't know which one is AI-Thinker.