Files
tdEngine_mqtt_mock/requirements.md
wsy182 6557479a2f refactor(config): 重构配置模块并优化应用依赖注入
- 将配置相关类移动到model模块
- 实现依赖注入容器管理各组件依赖关系
- 重构配置加载逻辑支持多层级键值查找
- 更新主应用入口支持命令行参数解析
- 统一日志输出格式替换原有打印语句
- 引入钻井实时数据模型简化数据处理
- 移除硬编码字段映射改用动态配置方式
- 优化数据库写入逻辑基于新的数据模型
2026-03-12 10:41:26 +08:00

26 lines
548 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# tdEngine_mqtt_mock需求
## 功能
### wits数据模拟
1. 读取config.yaml中的server-ip和端口将模拟的wits数据发送到这个地址。wits数据要尽可能的拟真。
2. 发送间隔两秒一条。
### mqtt消息订阅和入库
1. 订阅指定topic的消息将消息写入tdengine数据库tdengine的配置在config.yaml的tdengine。mqtt的配置在config.yaml的mqtt。
## 要求
程序启动入口main.py,使用logging记录日志。
将业务对象抽取到model包下。
数据库实体放在model包下。