You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I have an issue using your library with the PIN-disable/removed SIM card - the command AT+CPIN? gives response: +CPIN:READY /OK, but if I simply try to connect either by modem.connect(), modem.connect(pin=None), modem.connect(pin=''), I always get an error ('CME 11 (SIM card PIN is required)'.
How could it be solved?
The text was updated successfully, but these errors were encountered:
I found a problem:
originally, the line #431 in modem.py looks so
if cpinResponse != '+CPIN: READY':
which means, it will fail if the response does no contain space.
I modified it so:
if cpinResponse.replace(' ', '') != '+CPIN:READY':
and now it works as it will accept any response - with or without spaces. It also solved my problem.
Hi!
I have an issue using your library with the PIN-disable/removed SIM card - the command AT+CPIN? gives response: +CPIN:READY /OK, but if I simply try to connect either by modem.connect(), modem.connect(pin=None), modem.connect(pin=''), I always get an error ('CME 11 (SIM card PIN is required)'.
How could it be solved?
The text was updated successfully, but these errors were encountered: