feat(wits): 添加WITS数据包字符串转换功能
- 实现to_string方法将WITS对象转换为字符串格式 - 根据通道映射配置格式化不同类型的字段值 - 支持string、int和float6格式的数据类型转换 - 移除调试日志代码行
This commit is contained in:
@@ -232,6 +232,7 @@ def run_wits_sender(args, deps):
|
||||
packet = load_packet_from_file(source_file)
|
||||
else:
|
||||
packet = build_wits_packet(build_random_wits_data(deps.config.tms.device_code))
|
||||
# logging.info(f"packet: {packet}")
|
||||
send_packet(sock, packet)
|
||||
logger.info("TX WITS #%s -> %s:%s", seq, host, port)
|
||||
if logger.isEnabledFor(logging.DEBUG):
|
||||
|
||||
Reference in New Issue
Block a user