Issue Modem Command

res = modem.cmd(cmdtxt, [lookfor], [firstms], [maxtime], [retries])

Issues a command to the modem.

Parameter Type Default Description
cmdtxt string The AT command - without the "AT" prefix
lookfor string '\\*' String response to look for (use lowercase), or special strings below
firstms integer -1 The time to wait for the first response (millseconds)
maxtime integer -1 The overall response time (seconds)
retries integer 3 Number of retries
lookfor string Description
'\\*' Any text
'\\#' Any numbers
'\\l Lines of text