RULES


Rules are stored in specific folders of Unit R.

More details here: RULES.



READ RULE


Returns a defined rule.

All rules are returned omitting the index of the rule.


Command

AT#RR[=<n>]

Response

<n>_<t>_<1>_<2>_<3>_<4>_<5>_<a>_<b>_<c>_<d>_<e>

COMMAND ACCEPTED


OK

COMMAND ACCEPTED, RULE NOT FOUND


ERROR

COMMAND REJECTED

Parameters

<n>

RULE INDEX

IF NOT SPECIFIED, RETURNS ALL RULES


<t>

TRIGGER EVENT


<1>_<2>_<3>_<4>_<5>

UP TO 5 CONDITIONS TO BE VERIFIED


<a>_<b>_<c>_<d>_<e>

UP TO 5 COMMANDS TO BE DEPLOYED

EDIT RULE


Adds a new rule or modifies an existing rule.


Command

AT#ER=<n>_<t>_<1>_<2>_<3>_<4>_<5>_<a>_<b>_<c>_<d>_<e>

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

Parameters

<n>

RULE INDEX


<t>

TRIGGER EVENT

see RULES > EVENTS


<1>_<2>_<3>_<4>_<5>

UP TO 5 CONDITIONS TO BE VERIFIED

see RULES > CONDITIONS


<a>_<b>_<c>_<d>_<e>

UP TO 5 COMMANDS TO BE DEPLOYED

see RULES > ACTIONS


To let the unit store the rule at first available index, set xxx as a rule index.


Specify the index only to remove an existing rule:

AT#ER=<n>

OK


To remove all rules, use the command:

AT#ER=C

OK