Merge pull request #2 from emfcamp/sammachin-get-imsi

Added function to get the IMSI
tildatorch
Alistair MacDonald 2018-08-24 09:58:55 +01:00 committed by GitHub
commit 73501c4c62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -213,6 +213,14 @@ def imei():
else:
return ""
# Get the IMSI number of the Sim Card
def imsi():
responce = command("AT+CIMI")
if (len(responce)>=2):
return responce[-2]
else:
return ""
# Get/Set ringer volume (0-100)
def ringervolume(level=None):
# Set the new leve if we have one to set