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 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
Drive = await InoDriveApi.InoDrive({target:'Name', autoConnect:True})

// Get Accelerometer Information
await Drive.IO.getAccelerometer()