定义 LoRaMeshUartPassthroughManager

This commit is contained in:
2025-10-09 17:01:52 +08:00
parent f30d0e0865
commit 7bc7a95379
6 changed files with 91 additions and 12 deletions

View File

@@ -10,7 +10,7 @@
"""
# 导入我们定义的“契约”(接口)
from lora.lora_interface import ILoraHandler
from lora.lora_interface import ILoraManager
from bus.bus_interface import IBusManager
# 导入Protobuf解析代码
@@ -25,12 +25,12 @@ class Processor:
它依赖于抽象的、面向业务的接口。
"""
def __init__(self, lora_handler: ILoraHandler, bus_manager: IBusManager):
def __init__(self, lora_handler: ILoraManager, bus_manager: IBusManager):
"""
构造函数 (依赖注入)。
Args:
lora_handler (ILoraHandler): 一个实现了LoRa接口的对象。
lora_handler (ILoraManager): 一个实现了LoRa接口的对象。
bus_manager (IBusManager): 一个实现了总线接口的对象。
"""
self.lora = lora_handler