Modem Lua Event Callback Functions

These are Lua calbacks that are executed in the context of the Modem Handler thread.

The callbacks allow you to hook into various modem events, and to communicate with the SIM card.

The callbacks have no parameters, and no return value.

Callback When executed
mdmOn About to be power on
mdmInit Initialisation complete, after the c.modem.init string processed.
mdmSim After SIM card has been initialised.
mdmReg When registered
mdmOnline Internet APN Online
mdmOffline Internet APN Offline
mdmDereg Deregistered
mdmOff Modem about to be powered off

e.g.

function mdmOnline()
 log.write('test', 'Internet now accessible')
end