feat(wits): 添加WITS数据包字符串转换功能

- 实现to_string方法将WITS对象转换为字符串格式
- 根据通道映射配置格式化不同类型的字段值
- 支持string、int和float6格式的数据类型转换
- 移除调试日志代码行
This commit is contained in:
2026-03-12 17:27:38 +08:00
parent dc8aed8156
commit e62dda7aed
2 changed files with 27 additions and 0 deletions

View File

@@ -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):