实现 GeneralDeviceService

This commit is contained in:
2025-09-16 17:12:27 +08:00
parent 2ac3dcda84
commit c9df4fd6f4
5 changed files with 137 additions and 14 deletions

View File

@@ -3,5 +3,5 @@ package transport
// Communicator 用于其他设备通信
type Communicator interface {
// Send 用于发送一条单向数据(不等待回信)
Send(deviceID string, payload []byte) error
Send(address string, payload []byte) error
}