save work, not yet working

This commit is contained in:
2023-11-28 16:53:51 +01:00
parent 3094cf9cd4
commit 8ba312d585
6 changed files with 95 additions and 16 deletions

View File

@ -13,9 +13,9 @@ type ConfigT struct {
TlsEnable string `json:"tlsEnable"`
} `json:"mqtt"`
TopicMappings []struct {
Topics []string `json:topics`
Handler string `json:handler`
} `json:"TopicMappings"`
Topics []string `json:"topics"`
Handler string `json:"handler"`
} `json:"topicMappings"`
Handlers []struct {
Name string `json:"name"`
DatabaseConnStr string `json:"databaseConnStr"`

View File

@ -0,0 +1,26 @@
{
"mqtt": {
"broker": "172.23.1.102:1883",
"username": "",
"password": "",
"tlsEnable": "false"
},
"topicMappings": [
{
"topics": ["IoT/MBGW3/Measurement"],
"handler": "IoT"
}
],
"handlers": [
{
"name": "IoT",
"databaseConnStr": "",
"attributes": {
}
}
],
"archiver": {
"dir": "/mnt/udi/archive"
}
}