senderSubId — determines the element that sent the event and returns its SUB-ID.

Description:

u8 senderSubId();

Returns SUB-ID of the element sent the event:

Return values:

Returns SUB-ID of the element sent the event: Type of return value u8.

Example:

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

V-ID/V-ADDR 
{
	if(opt0()) 
	{
		u8 sub_id = senderSubId();
		u8 strForMess[70]; 
		sprintf(strForMess, "%cSub-Id of the element sent the event: %d", 1, sub_id);
		setStatus(@exciterId():32, &strForMess);
		setStatus(V-ADDR, 0);
	}
}

</item>

The result of performing the example in the interface:

“Sub-Id of the element sent the event: 248”