feat: subscription to properties

This commit is contained in:
Strix 2023-10-15 18:06:32 +02:00
parent e386efc5ae
commit be4425aff9
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -170,11 +170,10 @@ Get a properties value
#### Command data
| offset | size | name | description | reserved | example |
|--------|-------------------------|-----------------|---------------------------------------------|----------|---------|
| `0x14` | 32 bytes | `property_name` | The name of the property as a UTF-8 string. | no | "Power" |
| `0x34` | 1 byte | `data_type` | The type of the data. | response | `0x01` |
| `0x35` | determined by data type | `data` | The actual data. | response | |
| offset | size | name | description | reserved | example |
|--------|----------|-----------------|---------------------------------------------|----------|----------|
| `0x14` | 32 bytes | `property_name` | The name of the property as a UTF-8 string. | no | "Power" |
| `0x34` | 1 byte | `dynamic_data` | Dynamic data snippet | response | `0x0100` |
### `0x11` - Set property
@ -192,3 +191,17 @@ Get a properties value
| offset | size | name | description | reserved | example |
|--------|----------|-----------------|---------------------------------------------|----------|---------|
| `0x14` | 32 bytes | `property_name` | The name of the property as a UTF-8 string. | no | "Power" |
### `0x1A` - Subscribe to property
| offset | size | name | description | reserved | example |
|--------|----------|-----------------|---------------------------------------------|----------|--------------|
| `0x14` | 4 bytes | `device_id` | Who's property? | no | `0x00000000` |
| `0x18` | 32 bytes | `property_name` | The name of the property as a UTF-8 string. | no | "Power" |
### `0x1A` - Unsubscribe to property
| offset | size | name | description | reserved | example |
|--------|----------|-----------------|---------------------------------------------|----------|--------------|
| `0x14` | 4 bytes | `device_id` | Who's property? | no | `0x00000000` |
| `0x18` | 32 bytes | `property_name` | The name of the property as a UTF-8 string. | no | "Power" |