← Back to Emulation domain

Emulation.setSensorOverrideReadings

Updates the sensor readings reported by a sensor type previously overridden by setSensorOverrideEnabled.

Domain: Emulation experimental

Parameters

NameTypeDescription
typeSensorType
readingSensorReading

Example Request

{
  "id": 1,
  "method": "Emulation.setSensorOverrideReadings",
  "params": {
    "type": "type-value",
    "reading": "reading-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Emulation.setSensorOverrideReadings', {"type": "type-value", "reading": "reading-value"});
console.log(result);