InoDrive / Connection / set_target
InoDrive.set_target(self, target=None)
Change InoDrive Object’s Targeted Module.
Arguments:
• self (Object): Reference to InoDrive Object.
• target (String): A Module Name, Serial Number, or IPv4 Address.
Returns: Nothing
import CkInoDriveAPI # Instantiate InoDrive Object and Connect by Name Drive = CkInoDriveAPI.InoDrive(target='Name1', autoConnect=True) # Attempt to Disconnect from current Targeted Module Drive.disconnect() # Set new Module Target and Connect Drive.set_target(target='Name2') Drive.connect()