delayedCallM — delayed function call in minutes.

Description:

void delayedCallM(void *func, u16 time[,u32 data]);

Delayed func function call in time minutes.

List of parameters:

func

Pointer to the function.

time

Time in minutes (maximum 1024).

Example:

<import-script id="524" LAMP="524:19" name="Test for delayedCallM function">

void offLamp() 
{
	setStatus(LAMP, 0);
}

V-ID/LAMP 
{
	if(opt0())  
	{
		delayedCallM(offLamp, 1);
	}
}

</import-script>

The result of performing this example:

On expiry of a minute after switching on the element LAMP will be turned off.

Note:

· Before the previous call is triggered the 2nd delayed call will be generated but not recorded over the previous one when assigning the delayed recall to one and the same function.

· Maximum value for time is 1024.