2N Indoor Touch Api Manual page 11

Api
Hide thumbs Also See for Indoor Touch:
Table of Contents

Advertisement

3.3.1.3 Effect Activation
int
LedsActivateEffect(String effectName,
Activates
an
effect
LED_PRIORITY_WARNING=20 or LED_PRIORITY_CRITICAL=30. A higher priority
overrides a lower one. This means that if an effect with a higher priority is activated
while an effect with a lower priority is active, the higher priority effect will be
preferred. If the lower priority effect still remains after the higher priority effect ends,
it will be activated again. Thus, the application does not have to be concerned with
sharing LEDs with other applications - effect activation with an adequate priority is
enough. By default, the blue LED backlight notification is activated automatically with
p r i o r i t y
The return value is as follows:
IndoorTouch.RC_OK = 0;
IndoorTouch.RC_ERR_CONN = -1; API daemon connection error
IndoorTouch.RC_ERR_NOTEXIST = -4; the effect name does not exist
IndoorTouch.RC_ERR_DENIED = -7; notifications are disabled
IndoorTouch.RC_ERR_MAXREACHED = -10; maximum count of defined effects
exceeded
IndoorTouch.RC_ERR_PRIORITY = -11; an effect with the same LED mask and
identical priority has been started
3.3.1.4 Effect Deactivation
int
IndoorTouch.LedsEffectDisable(String effectName);
Removes an active effect immediately. The LED brightness values remain on the level
that was valid at the time of effect removal. If a lower priority effect is active
controlling similar LEDs, the values will be reset immediately. As backlight notification
is active in the RGB LEDs by default, the value is reset to black or blue after
n o t i f i c a t i o n
The return value is as follows:
IndoorTouch.RC_OK = 0;
IndoorTouch.RC_ERR_CONN = -1; API daemon connection error
IndoorTouch.RC_ERR_NOTEXIST = -4; the effect name does not exist
2N TELEKOMUNIKACE a.s., www.2n.cz
with
a
pre-defined
int
priority);
priority:
LED_PRIORITY_INFO=10,
9 .
e n d .
11/42

Advertisement

Table of Contents
loading

Table of Contents