I need the Digi Connect WAN 3G to send an SMS to a number every 24 hours. I've written a python script to do this, and while sending the SMS from the script isn't a problem, getting it to repeat is.
There isn't any cron functionality on the device so I'm left with the option to do this using Python.
This is the script:
msg="Ping from "+addr
def __init__(self, interval, func, *args, **kwargs):
self.interval = interval # seconds between calls
self.func = func # function to call
self.args = args # optional positional argument(s) for call
self.kwargs = kwargs # optional keyword argument(s) for call
self.runable = True
self.runable = False
thread = RepeatEvery(30, sendMessage)
The number in addr would normally be a complete phone number, but it's been censored for privacy sake.
When I run this, it locks up the Digi Connect 3G and kills my SSH session, and no messages are sent.
Does anyone know how I can configure the Digi Connect 3G to send an SMS message every 24 hours?