# Sensor callbacks

Source: [https://docs.qualcomm.com/doc/80-PK177-134/topic/sensor_callbacks.html](https://docs.qualcomm.com/doc/80-PK177-134/topic/sensor_callbacks.html)

- **Error callback**  

This callback is called asynchronously when there is an error in underlying modules while processing sensor data. The client must stop ongoing operations and clean up the resource and should start sensor session from the beginning.
- **Event callbacks**  

This callback is called whenever sensor data is available. The actual sensor data encoded in proto message is delivered through this callback. The client needs to decode proto\_encoded\_message to get sensor data. See Encoding and decoding protobuf messages for more information.

**Parent Topic:** Sensor API

Last Published: Nov 14, 2024

Previous Topic
 
register\_error\_callback Next Topic

Error callback