Closed Giwrgosyea closed 3 years ago
For anyone having this issue this can be solved as:
Instead of using:
MongoDB URL - mongodb://rpiread:rpiread@rpi-sensor-data-shard-00-00-ifxxs.mongodb.net:27017,rpi-sensor-data-shard-00-01-ifxxs.mongodb.net:27017,rpi-sensor-data-shard-00-02-ifxxs.mongodb.net:27017/test?ssl=true&replicaSet=rpi-sensor-data-shard-0&authSource=admin
MongoDB Database - rpi
As shown is readme use this :
MongoDB URL: mongodb://myDBReader:D1fficultP%40ssw0rd@mongodb0.example.com:27017,mongodb1.example.com:27017,mongodb2.example.com:27017/?authSource=admin&replicaSet=myRepl
as show here https://docs.mongodb.com/manual/reference/connection-string/, check firstly if you can connect with mongo compass.
MongoDB Database: YOURCOLLECTION
After following the installation procedure I tried to connect with Mongo Atlas without a result. Any suggestion how to connect with mongo atlas would be appreciated or any documentation of the fields.
Thanks!