- 实现了应用配置的数据类结构(MqttConfig, TmsConfig, AppConfig) - 创建了配置加载和解析功能,支持从YAML文件读取配置 - 添加了TDengine数据库配置和连接池管理 - 实现了MQTT客户端依赖注入和服务构建 - 创建了钻孔实时数据的ORM映射和SQL构建功能 - 实现了TDengine Writer用于数据写入超级表 - 添加了MQTT模拟服务,支持发布、订阅和数据转发功能 - 创建了随机数据发送器用于测试 - 实现了消息持久化到本地文件功能 - 配置了数据库连接池和SQL执行功能
30 lines
759 B
YAML
30 lines
759 B
YAML
mqtt:
|
|
broker: tcp://192.168.1.87:1883
|
|
client-id: tms-client-dev
|
|
mock-client-id: tms-client-dev-mock
|
|
sender-client-id: tms-client-dev-sender
|
|
subscriber-client-id: tms-client-dev-subscriber
|
|
username: test
|
|
password: S55HtwFZvhf67VpS
|
|
# Server publishes here; mock service subscribes and ingests
|
|
pub-topic: rules_gj_jxjs_wtt
|
|
# Mock service forwards here for other subscribers
|
|
|
|
tms:
|
|
device-code: GJ-304-0088
|
|
equipment-sn: GJ-304-0088
|
|
timeout: 10
|
|
keepalive: 20
|
|
server-ip: 192.168.1.41
|
|
server-port: 9929
|
|
|
|
tdengine:
|
|
url: jdbc:TAOS-RS://192.168.1.87:6041/tms
|
|
username: root
|
|
password: wDvfFffdwbm5U15K
|
|
# If omitted, database is parsed from url path: /tms
|
|
database: tms
|
|
stable: drilling_realtime_st
|
|
device-code: GJ-304-0088
|
|
|