getStatus —access to the array that describes the device status.

Description:

u8 getStatus(ID:SUBID, u8 *array{, u8 arraysize});

Entry into the array array of ID:SUBID device status value .

List of parameters:

ID:SUBID

Device address.

array

Reference to the array where the device status will be recorded.

arraysize

The size of requested array (optional parameter).

Return values:

Returns the ID:SUBID device status array size in bytes.

Example:

<item id="524" RGB="524:16" name="getStatus" type="script">

V-ID/V-ADDR
{
	if(opt0())
	{ 
		u8 strForMess[200]; 
		u8 stt[4]; 
		u16 sttOfRgb = getStatus(RGB, &stt);

		sprintf(strForMess, "%c RGB status size - %d\Byte - %d Byte - %d Byte - %d Byte %d", 
			1, sttOfRgb, stt[0],stt[1], stt[2], stt[3]);

		setStatus(@exciterId():32, &strForMess); 
	}
}
</item>

The result of performing this example:

When pressing the element script, the message with the information about number RGB element status word bytes and with the value of each byte will appear in the interface.