调整GeneralDeviceService

This commit is contained in:
2025-09-29 18:13:19 +08:00
parent ccea087f6c
commit ee8039b301
2 changed files with 70 additions and 82 deletions

View File

@@ -30,8 +30,9 @@ type LoraProperties struct {
// BusProperties 定义了总线设备的特有属性
type BusProperties struct {
BusID int `json:"bus_id"` // 485 总线号
BusAddress int `json:"bus_address"` // 485 总线地址
BusNumber int `json:"bus_number"` // 485 总线号
BusAddress int `json:"bus_address"` // 485 总线地址
RelayChannel int `json:"relay_channel"` // 继电器通道号
}
// AreaController 是一个LoRa转总线(如485)的通信网关