save work, not yet working
This commit is contained in:
@ -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"`
|
||||
|
26
src/udi/config/example.json
Normal file
26
src/udi/config/example.json
Normal 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"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user