// DDC control 
//123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
//===================================-======================================*/
//                         DDC STATE & DATA CONTROL                         */
//-----------------------------------=--------------------------------------*/
// AUTHORs:        P.Ferrari & Heidi Sandaker
//
//   DESIGN ISSUEs:  Run state transitions
//
//   MODIF_HISTORY:  25.07.2003 - first version
//===================================-======================================*/

main()
{ 
DebugN("Started main");
dpConnect("SendState","example.trigger:_original.._value");
}

void SendState(string Text, bool Flag) 
{
int test;
string text;
int Flag;

DebugN("Text", text, "Flag", Flag);
//if bool is =1
   dpSet("RST.Data:_original.._value",1);
   dpGet("RST.Data:_original.._value", test);
   DebugN("value", test);
   dpSet("RST.Data:_original.._value",0);
   dpGet("RST.Data:_original.._value", test);
   DebugN("value", test);

//    dpGet("example.parameters:_original.._value", string);
     //info = strsplit(string,"|");
 //    sscanf(string,"%d",stat);
 //      DebugN("**INFO",string);
 //    if(stat==0){
 //      DebugN("OFF");
}