定义 LoRaMeshUartPassthroughManager
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user