I am currently using mongodb database to store my openhab items values.
here is my mongodb.cfg file:
I am able to access the Local MongoDB database from mongo client running on my PC.
Now in MongoDB Atlas, i have created database named openhab, with collection serial. But as I try to connect to my MongoDB Atlas port, by replacing localhost with the port details as given below:
It gives me error of " The activate method has thrown an exception
java.lang.RuntimeException: Cannot connect to database ".
Can anyone help me to understand how to store data on MongoDB Atlas using mongodb persistence.