myDu_initialize(string domain, string device)
{
}

myDu_valueChanged( string domain, string device,
      int state, string &fwState )
{
	if (state > 0)
	{
		fwState = "READY";
	}
	else if (state > -1)
	{
		fwState = "NOT_READY";
	}
	else 
	{
		fwState = "ERROR";
	}
}


myDu_doCommand(string domain, string device, string command)
{
	if (command == "RESET")
	{
		dpSet(device+".command",0);
	}
	if (command == "CONFIGURE")
	{
		dpSet(device+".command",1);
	}
	if (command == "RECOVER")
	{
		dpSet(device+".command",0);
	}
}


