refactor: breaking refactor of domo_proto and domo_node
This commit is contained in:
parent
be4425aff9
commit
15971aa4fa
31 changed files with 902 additions and 393 deletions
|
@ -16,8 +16,8 @@ Also, it will make sure no invalid updates can be sent.
|
|||
Most packets go through the master node before getting to the source.
|
||||
Most because the subnet node can have private nodes and handle those themselves.
|
||||
|
||||
# The Relay node (`relay`)
|
||||
The relay node is simple.
|
||||
# The Bridge node (`relay`)
|
||||
The bridge node is simple.
|
||||
In config you define where to forward the packets to, and they get delivered to there.
|
||||
|
||||
# The Subnet node (`subnet`)
|
||||
|
|
|
@ -157,6 +157,7 @@ Send a packet to state an error occurred.
|
|||
| `0x01` | `net_broken_packet` | recent packet was broken. | resend packet |
|
||||
| `0x02` | `net_invalid_packet` | the packet sent is not valid | send packet with proper values |
|
||||
| `0x03` | `net_addr_in_use` | the addr requested is in use already | register with another id or `0` |
|
||||
| `0x04` | `net_dest_unreachable` | the destination could not be reached | no |
|
||||
| `0x1*` | `errc_*` | **Client errors** | |
|
||||
| `0x10` | `errc_not_registered` | client is not registered | register client |
|
||||
| `0x2*` | `errs_*` | **Server errors** | |
|
||||
|
@ -173,7 +174,7 @@ 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" |
|
||||
| `0x34` | 1 byte | `dynamic_data` | Dynamic data snippet | response | `0x0100` |
|
||||
| `0x34` | dynamic | `dynamic_data` | Dynamic data snippet | response | `0x0100` |
|
||||
|
||||
### `0x11` - Set property
|
||||
|
||||
|
@ -182,7 +183,7 @@ 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" |
|
||||
| `0x34` | 1 byte | `dynamic_data` | Dynamic data snippet | no | `0x0100` |
|
||||
| `0x34` | dynamic | `dynamic_data` | Dynamic data snippet | no | `0x0100` |
|
||||
|
||||
### `0x12` - Reset property
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue