InoDrive / IO / getTemperatures


InoDrive.IO.getTemperatures()

Get information about the Temperature of the InoDrive Module

Returns: Temperature Information (Object) This object contains temperature (in Celsius) information for the Drive including: the Case, CPU, FETs, Outputs, and Regen.

// 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 })

// Get the Temperature Information
await Drive.IO.getTemperatures()