Connectivity email

Should I be able get a notification sent to an email address if connectivity to talk2m goes down?

@landersson

Unfortunately, this is only possible using pools in the Talk2M pro account.

ā€“

One alternative method which would only apply in situations where the device has internet but its unable to reach our Talk2M servers would be to create a script (Flexy or CD only) that checks if the connection exists to Talk2M and then send an email out if the VPN IP does not exist. This would not help in cases where the eWON is dropping due to lack of internet.

INIT Section:
TSET 1,5  //Set a 5 second timer. 
ONTIMER 1, "GOTO CheckConnection"


CheckConnection:
SETSYS INF, "LOAD"
A$ = GETSYS INF, "VPNIP"

IF(a$ = "0.0.0.0") THEN
    PRINT "VPN Down"
    SENDMAIL "email@email.com", "", "Talk2M Connection Down", "The device has gone offline in eCatcher"
ELSE
    PRINT "VPN Online. IP is: " + a$

ENDIF