Skip to main content

MongoDB Plug-in

MongoDB Requirements

Starting with OPC Router 5.7, an updated MongoDB driver is used that requires at least MongoDB 4.2 (Wire version 8). For older MongoDB versions, the connection test will report a corresponding error.

You can set the following properties in the configuration of the MongoDB plug-in:

PropertyDescription
NameGive the MongoDB connection a unique name.
Use SRVEnable to use SRV to connect to the database.
HostSpecify the IP or DNS name of the Mongo database server.
Use SSLEnable to encrypt the network connection.
Auth modeSelect the desired authentication method. Depending on the authentication method, the following input fields will be enabled.
UsernameSpecify a username.
PasswordSpecify a password.
AuthDBSelect a user database for the MongoDB instance.
Client CertificateSelect or create a certificate for authentication.
DatabaseSelect the MongoDB database.

Tab: Advanced

PropertyDescription
Timeout(s)Specify the timeout in seconds.
Use replica setIf you want to use a replica set, select this checkbox.
Replica Set Name:Name of the replica set.
Read PreferenceSetting specifying which server data should primarily be read from.

Mqtt connection