InoDrive / File / readModuleConfig


InoDrive.File.readModuleConfig()

Get Module Configuration File.

Returns: Module Config (Object) Configuration settings of the Module: Name, Network Properties, and Electrical Properties.

// Import InoDrive API Library
import { InoDriveApiJS }  from "ck-inodrive-api" 

// Instatiate the API
let InoDriveApi = new InoDriveApiJS.InoDriveApi({ connectAppUrl: "", secure: false })

// Instantiate InoDrive Object
let Drive = await InoDriveApi.InoDrive({ target: "Name", autoConnect: true })

// Read Module Configuration File
console.log(await Drive.File.readModuleConfig())