change config

This commit is contained in:
Wolfgang Hottgenroth
2017-08-25 14:17:26 +02:00
parent 25116aae89
commit 6a59880109
3 changed files with 51 additions and 4 deletions

View File

@ -13,8 +13,9 @@ let dispatcher = new mqtt.MqttDispatcher("mqtts://broker.hottis.de:8883",
dispatcher.register('IoT/espThermometer2/#', 'toJson', EspThermToJson.espThermToJson)
let atlasUrl = "mongodb://receiver:esp8266.@cluster0-shard-00-00-7qduq.mongodb.net:27017,cluster0-shard-00-01-7qduq.mongodb.net:27017,cluster0-shard-00-02-7qduq.mongodb.net:27017/hottis?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin"
let mongo : MongoSave.MongoSave = new MongoSave.MongoSave(atlasUrl)
let mongoUrl = "mongodb://localhost/hottis"
// let mongoUrl = "mongodb://receiver:esp8266.@cluster0-shard-00-00-7qduq.mongodb.net:27017,cluster0-shard-00-01-7qduq.mongodb.net:27017,cluster0-shard-00-02-7qduq.mongodb.net:27017/hottis?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin"
let mongo : MongoSave.MongoSave = new MongoSave.MongoSave(mongoUrl)
dispatcher.register('IoT/espThermometer2/#', 'MongoSave', mongo);