Remote device management. Connects to the remote device.

 
Parameters:

 
dev - device you need to connect to

 

bool persistent - true if it’s required to restore connection in case of failure

 

Return:

 

errno error code