I want to use the Security Alarm System options to call a new program of mine called SendStatusText. Previously I have been tweaking the Security code but I am tired of re-doing that every time I change HG.
This program should only run when called directly from Security or maybe some other places I'll add in the future. SendStatusText works when I recompile it (it sends me email with camera image attachment, status of alarm, IP address, etc).
When I add either the program id (1001) or the program name (SendStatusText) into the three Security options for armed program, disarmed program and triggered program; SendStatusText does not send the text as it normally does when I recompile it.
My SendStatusText program Startup Code has only
Program.Run();
//tried return true; also but I think this is deprecated?
The Program Code has
//code to get ip, image, send text which works on recompile
Program.GoBackground(); //commenting this out causes program to infinite loop and flood of emails :-(
So what is the correct structure of a program for this usage? I have tried reading through docs but either missed it, not enough detail, or I just don't understand :-)