InoDrive / File / write_module_config


InoDrive.File.write_module_config(self, content=None)

Write out to Module’s Configuration File. All Changes to File require the InoDrive to be power cycled to take effect.

Arguments:

self (Object): Reference to InoDrive File Instance.
content (Bytes): Module configuration settings in a Raw Binary Format.

Returns: Boolean – True or False Value on successfully writing out the Module Configuration File.

import CkInoDriveAPI

# Instantiate InoDrive Object and Connect by Name
Drive = CkInoDriveAPI.InoDrive(target='Name', autoConnect=True)

# Get Module Configuration File
content = Drive.File.read_module_config()

# Change Module Name
content['name'] = "New Name"

# Write Out Changes to Configuration File
result = Drive.File.write_module_config(content)
print(result)