Skip to content

Commit

Permalink
structuring new attribute types
Browse files Browse the repository at this point in the history
  • Loading branch information
XdoctorwhoZ committed Jun 24, 2024
1 parent 44147dc commit d62d42a
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
title: "Attribute Types"
weight: 100
description: ""
icon: cloud
---

### `[PLATF_00018]` - Attribute A0

Historic attribute type for Panduza.

- Commands sent on topic "cmds/set"
- Acknowledge on reading the topic "atts/{att_name}"

Payloads: json

Its main goal was to be able to set multiple attributes with the same command. It supported only a "control" vision of Panduza.
This type should be avoided for new interfaces.

### `[PLATF_00019]` - Attribute A1

Attributes for field control

Similar to A0 but with a dedicated cmds topic

- Commands sent on topic "cmds/{att_name}"
- Acknowledge on reading the topic "atts/{att_name}"

Payloads: json

atts topic: retained true !

cmds and atts are mirroring, to set a value just send it into cmds and atts will reflect if accepted.

Some fields or all felds can be ReadOnly.

### `[PLATF_00020]` - Attribute A2

free cmds (send command on the custom format defined by the interface)

### `[PLATF_00020]` - Attribute A3

free atts (value returned on the custom format defined by the interface)

atts topic: retained true !
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ To read 3 register from index 0

## Attributes

| Attribute name | Retain Topic |
| :------------- | :----------: |
| map | true |
| settings | true |
| commands | true |
| Name | Type |
| :------------- | :--: |
| map | A3 |
| settings | A1 |
| commands | A2 |

### `[PLATF_00016_00]` - map

Expand Down

0 comments on commit d62d42a

Please sign in to comment.