This repository has been archived on 2025-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
donten/doc/design/network/api_control.md
2024-12-12 01:07:40 -08:00

31 lines
289 B
Markdown

# Control API
## Packet
```
<Id:4B> <Secret:12B> <Data:496B>
```
### Encryption
## Commnad
Each packet may provide up to 62 commands.
```
<OpCode:2b> <Code:14b> <Channel:16b> <Value:32b>
```
### OpCode
- (0) Info
- (1) Get
- (2) Set
- (3) Add
### Code
### Channel
### Value