Skip to content

Commit

Permalink
New AT commands added to the library
Browse files Browse the repository at this point in the history
1. AT+CREG? as getNetworkRegStatus()
2. AT+COPS? as getOperator()
  • Loading branch information
saeedjohar committed Oct 17, 2019
1 parent 8634233 commit c9649fa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cellulariot/cellulariot.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,15 @@ def connectToOperator(self):
self.sendATComm("AT+CGATT?","+CGATT: 1\r\n")
self.getSignalQuality()

# Fuction to check the Network Registration Status
def getNetworkRegStatus(self):
return self.sendATComm("AT+CREG?","OK\r\n")

# Function to check the Operator
def getOperator(self):
return self.sendATComm("AT+COPS?","OK\r\n")


#******************************************************************************************
#*** SMS Functions ************************************************************************
#******************************************************************************************
Expand Down

0 comments on commit c9649fa

Please sign in to comment.