实现 LoRaMeshUartPassthroughTransport

This commit is contained in:
2025-10-10 15:59:58 +08:00
parent 50a843c9ef
commit 503feb1b21

View File

@@ -115,7 +115,7 @@ func NewApplication(configPath string) (*Application, error) {
} else {
logger.Info("当前运行模式: lora_mesh。初始化 LoRa Mesh 传输层和占位符监听器。")
listenHandler = webhook.NewPlaceholderListener(logger)
tp, err := lora.NewLoRaMeshUartPassthroughTransport(cfg.LoraMesh, logger)
tp, err := lora.NewLoRaMeshUartPassthroughTransport(cfg.LoraMesh, logger, areaControllerRepo, pendingCollectionRepo, deviceRepo, sensorDataRepo)
loraListener = tp
comm = tp
if err != nil {