ActionscalibrateAccelerometerVersion: 4.59On this pagecalibrateAccelerometer Calibrates the accelerometer (acceleration sensor). Field Configurations KeyTypeDescriptionDefault Value"params"Objectundefinednull Parameters KeyTypeDescriptionDefault Value"async"BooleanSpecifies whether the action should perform asynchronously.null"delay"Number,StringNumber of milliseconds after which the calibration is performed.null"onError"StringEvent that is fired if the calibration was not successful.null"onErrorType"OnErrorTypeType of event that will be fired on error.null"onSuccess"StringEvent that is fired if the calibration was successful.null"onSuccessType"OnSuccessTypeType of event that will be fired on success.null Inherited From Base ActionBase ActionField ConfigurationsKeyTypeDescriptionDefault Value"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null"leadingDelimiter"StringThe leading mustache delimiter to use.null"params"Object,ArrayObject containing the properties of the action.null"trailingDelimiter"StringThe trailing mustache delimiter to use.null"type"StringType name of the action.null Examples Example 1: Calibrate the accelerometer Goal: Create a calibrateAccelerometer action performing a calibration after 1 second. To achieve this the following code can be used: { "type": "calibrateAccelerometer", "params": { "delay": "1000", "onSuccess": "calibrationSuccess", "onError": "calibrationError" }} The delay parameter specifies the delay in milliseconds, so that a value of 1000 corresponds to 1 second. Result: A calibrateAccelerometer action has been created.