Skip to main content
1-Visitor
March 24, 2020
Solved

SetConfigurationTable does not set isConnected property

  • March 24, 2020
  • 1 reply
  • 1845 views

Hi,

 

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.

Best answer by rmakhija

Hello, 

Thank you for the response.

Yes, the Thing is active. 

I was able to get it connected by providing an encrypted password and then restarting the thing.

1 reply

16-Pearl
April 13, 2020

Hello Roma,

 

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.

rmakhija1-VisitorAuthorAnswer
1-Visitor
April 27, 2020

Hello, 

Thank you for the response.

Yes, the Thing is active. 

I was able to get it connected by providing an encrypted password and then restarting the thing.