Getting started with Rules
The actions performed by the DroidEi are described as 'Rules'. On each actions like button press or slider push, rules are invoked.

Creating a Rule
  • Select on Inbound Rules Under 'Rule' menu
  • Click on Define new Rule
  • Name your rule( Don't use empty space, Instead use underscores )
  • Write the actions in C language that DEi need to perform on calling this rule.

  • Invoking a Rule
  • Add parameter 'rule' in your handle. (Learn about objects & handles )
  • Mention the rule name in the parameter 'rule'

  • Access parameters in rule
  • Use the 'parameter' mentioned in the rule as the address of the array jsonarray[ ]
    Eg: jsonarray['temp']