We are using 'SetConfigurationTable' service to update the database configuration (connection url, username and password). After executing the service, I am able to see the updated values in "Configuration" tab, but it does not update the "isConnected" to true. And therefore we cannot invoke anything in the database.
The 'password' is set as string (non-encrypted), does this need to be encrypted before setting it? In that case, how to encrypt this value?
I also tried invoking "SaveConfigurationTables" and "RestartThing" services after "SetConfigurationTable", but that didn't make any difference. Please suggest a working solution.
Solved! Go to Solution.
Can you confirm if the Active checkbox is ticked on the General Information page of the entity? isConnected will always be false if the Thing is not enabled by ticking the Active checkbox.
Additionally the password value does not need to be encrypted when it is being set as far as I am aware.