SensConnect – Add customer macros

In SensConnect during localisation process you can send any command to selected node (device).

There are predefined commands. The first one is the turn on/off command which is automatically invoked when you touch icon of node (the blue or green spots).

When you need to invoke on/off command again you can also use Turn On, Turn Off buttons above.

You can also trigger any command that you need via Macro button. This open dialogue where you can enter hexa-decimal command and click OK which will send command to end node.

We prepared some Predefined macros available in drop-down menu. Selection of the pre-defiend macro fills up the hexa-decimal command to the dialog. Then you can press OK to send command to node.

How to insert your own macros

If you know hexa-decimal command you can store it as a macro.

Open userConfig.json file at the path d:\SensConnect\IqrfServiceApp-win32-x64\resources\app\assets\cfg\ where d:\SensConnect can differ by your installation path.

In this file you can see macro arrays corresponding to macros you can see in macro dialogue in program. Adding new item to macros array will automatically display this macro item in macro dialogue.

{
  "skin": "rds",
  "macros": [
    {
      "name": "LDG blink",
      "hexCode": "00.00.07.03.FF.FF"
    },
    {
      "name": "LDR on",
      "hexCode": "00.00.06.01.FF.FF"
    },
    {
      "name": "LDR off",
      "hexCode": "00.00.06.00.FF.FF"
    },
    {
      "name": "Turn DALI on",
      "hexCode": "01.00.4A.00.FF.FF.C1.01.FF.E3.FF.E3"
    }
  ]
}

After update of the dialogue you have to restart SensConnect program.