我有以下 TOML 文件结构:
[database]
host = "localhost"
port = 8086
https = true
username = "root"
password = "root"
db = "test"
[cloud]
deviceType = "2be386e9bbae"
deviceId = "119a705fa3b1"
password = "test"
token = "dqpx5vNLLTR34"
endpoint = "mqtts://mqtt1.endpoint.com"
[gps]
#measurement = "gps"
[gps.msgpack]
topic = "/evt/gps/msgpack"
[gps.json]
topic = "/evt/gps/json"
[imu]
#measurement = "imu"
[imu.1]
tag = "NODE1"
topic = "/evt/imu1/msgpack"
[imu.2]
tag = "NODE2"
topic = "/evt/imu2/msgpack"
我只想在表和表中设置一次measurement键,而不是在and和 for and中冗余设置gpsimumsgpackjson12
使用注释掉的键以下代码有效
holdtom
相关分类