实现 LoRaMeshUartPassthroughTransport

This commit is contained in:
2025-10-10 15:58:40 +08:00
parent 8a5f6dc34e
commit 50a843c9ef
8 changed files with 529 additions and 38 deletions

View File

@@ -150,11 +150,12 @@ type LoraConfig struct {
// LoraMeshConfig 代表Lora Mesh配置
type LoraMeshConfig struct {
UARTPort string `yaml:"uart_port"`
BaudRate int `yaml:"baud_rate"`
Timeout int `yaml:"timeout"`
LoraMeshMode string `yaml:"lora_mesh_mode"`
MaxChunkSize int `yaml:"max_chunk_size"`
UARTPort string `yaml:"uart_port"`
BaudRate int `yaml:"baud_rate"`
Timeout int `yaml:"timeout"`
LoraMeshMode string `yaml:"lora_mesh_mode"`
MaxChunkSize int `yaml:"max_chunk_size"`
ReassemblyTimeout int `yaml:"reassembly_timeout"`
}
// NewConfig 创建并返回一个新的配置实例