senderId — determines the element that sent the event and returns its ID.

Description:

u16 senderId();

Returns ID of the element sent the event:

Return values:

Returns ID of the element sent the event: Type of return value u16.

Example:

<item addr="524:248" name="Test for senderId function" type="script">

V-ID/V-ADDR 
{
	if(opt0()) 
	{
		u16 id = senderId();
		u8 strForMess[70]; 
		sprintf(strForMess, "%cElement sent the event: %d", 1, id);
		setStatus(@exciterId():32, &strForMess);
		setStatus(V-ADDR, 0);
	}
}

</item>

The result of performing the example in the interface:

“Element sent the event: 524”