Line 31: |
Line 31: |
| The service user will give programmatic access to the MQTT client. | | The service user will give programmatic access to the MQTT client. |
| | | |
− | # Go to the users page and create a new service user (second panel on the page).
| + | * Go to the users page and create a new service user (second panel on the page). |
− | #:[[File:Networking_rutos_configuration_examples_openremote_002.png|border|class=tlt-border]]
| + | [[File:Networking_rutos_configuration_examples_openremote_002.png|border|class=tlt-border]] |
− | #:[[File:Networking_rutos_configuration_examples_openremote_003.png|border|class=tlt-border]]
| + | [[File:Networking_rutos_configuration_examples_openremote_003.png|border|class=tlt-border]] |
− | # Name the service user 'mqtt_user' and give the user the read and write role for the sake of convenience. It is advised to configure a more restricted role for your service users.
| + | * Name the service user 'mqtt_user' and give the user the read and write role for the sake of convenience. It is advised to configure a more restricted role for your service users. |
− | #:[[File:Networking_rutos_configuration_examples_openremote_004.png|border|class=tlt-border]]
| + | [[File:Networking_rutos_configuration_examples_openremote_004.png|border|class=tlt-border]] |
− | # Click 'Create', a secret will be generated automatically.
| + | * Click 'Create', a secret will be generated automatically. |
− | # Open the 'mqtt_user' user to see and copy the secret.
| + | * Open the 'mqtt_user' user to see and copy the secret. |
− | #:[[File:Networking_rutos_configuration_examples_openremote_005.png|border|class=tlt-border]]
| + | [[File:Networking_rutos_configuration_examples_openremote_005.png|border|class=tlt-border]] |
| | | |
| ===Create an asset with attributes=== | | ===Create an asset with attributes=== |
Line 44: |
Line 44: |
| We will create a Thing asset (MQTT subscriber), but feel free to use an AssetType that matches your physical device. | | We will create a Thing asset (MQTT subscriber), but feel free to use an AssetType that matches your physical device. |
| | | |
− | # On the assets page, click the + in the asset tree on the left.
| + | *On the assets page, click the + in the asset tree on the left. |
− | #:[[File:Networking_rutos_configuration_examples_openremote_006.png|border|class=tlt-border]]
| + | [[File:Networking_rutos_configuration_examples_openremote_006.png|border|class=tlt-border]] |
− | # Select the Thing asset type, give it a friendly name and click 'Add'.
| + | *Select the Thing asset type, give it a friendly name and click 'Add'. |
− | #:[[File:Networking_rutos_configuration_examples_openremote_007.png|border|class=tlt-border]]
| + | [[File:Networking_rutos_configuration_examples_openremote_007.png|border|class=tlt-border]] |
− | # Add new attribute in the Edit asset mode and save configuration:
| + | *Add new attribute in the Edit asset mode and save configuration: |
− | #:*type: Custom Attribute
| + | **type: Custom Attribute |
− | #:*name: writeAttribute
| + | **name: writeAttribute |
− | #:*Valuetype: JSON
| + | **Valuetype: JSON |
− | #:[[File:Networking_rutos_configuration_examples_openremote_008.png|border|class=tlt-border]]
| + | [[File:Networking_rutos_configuration_examples_openremote_008.png|border|class=tlt-border]] |
− | #:[[File:Networking_rutos_configuration_examples_openremote_009.png|border|class=tlt-border]]
| + | [[File:Networking_rutos_configuration_examples_openremote_009.png|border|class=tlt-border]] |
| | | |
| =RUT as MQTT Publisher= | | =RUT as MQTT Publisher= |