InoDrive / IO / getAccelerometer
InoDrive.IO.getAccelerometer()
Get information about the Accelerometer readings of the InoDrive Module
Returns: Accelerometer (Object) This object contains information about the X, Y, and Z axis readings of the internal Accelerometer.
// 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 Accelerometer Information await Drive.IO.getAccelerometer()