AtAction(at='+CNMI=1,1,2,0,0', critical=False),
# Enable async reporting of signal strength
AtAction(at='_OSQI=1', critical=False),
+ AtAction(check='+CIMI', ok='(\d\d\d+)', record=('sim','\\1')),
+ #_OSIMOP: "YES OPTUS","YES OPTUS","50502"
+ AtAction(check='_OSIMOP', ok='_OSIMOP: ".*",".*","(.*)"',
+ record=('sid','\\1'), critical=False),
# Enable reporting of Caller number id.
AtAction(check='+CLIP?', ok='\+CLIP: 1,[012]', at='+CLIP=1', timeout=10000,
record('incoming','')
record('signal_strength','')
record('status', '')
+ record('sim','')
+ record('sid','')
# set the initial state
self.set_state('flight')
elif type(repeat) != int:
repeat = repeat(self)
- if repeat and self.lastrun[i] + repeat <= now):
+ if repeat and self.lastrun[i] + repeat <= now:
return (i, 0)
if repeat:
delay = (self.lastrun[i] + repeat) - now;