InoDrive / IO / getEthernetPorts


InoDrive.IO.getEthernetPorts()

Get information about the Ethernet Ports of the InoDrive Module

Returns: Ethernet Information (Object) This object contains information about the two Ethernet Ports and the CPU on the Drive including whether or not it is linked, and if there are any errors.

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

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

// Instantiate InoDrive Object
Drive = await InoDriveApi.InoDrive({target:'Name', autoConnect:True})

// Get the Ethernet Port Information
await Drive.IO.getEthernetPorts()