faucamp / python-gsmmodem

Python module to control a GSM modem attached to the system: send/receive SMS messages, handle calls, etc
GNU Lesser General Public License v3.0
385 stars 303 forks source link

fix AT+CLCC command for SIM800L module #113

Open ramballan opened 1 year ago

ramballan commented 1 year ago

fix AT+CLCC command for SIM800L module

On command 'AT+CLCC' SIM800C returns next +CLCC: 1,0,2,0,0,"phone_number",129,"" and your regex ^+CLCC:\s+(\d+),(\d),(\d),(\d),([^,]),"([^,]*)",(\d+)$ doesn't match it, cause response has some information in the end of the string/ According to docs it's alphaId.