目录

Sensor_SubscriptionAttribute

typedef struct Sensor_SubscriptionAttribute Sensor_SubscriptionAttribute

Overview

Defines a struct for the sensor subscription attribute, including the sensor type, sampling rate, and data reporting interval. This attribute is applicable to sensor data subscription scenarios, helping developers configure the subscription mode based on service requirements and providing flexible capabilities for obtaining sensor data. This attribute can be used for step count and heart rate data subscription in health and fitness apps, real-time collection of temperature and humidity data in environment monitoring apps, and status change monitoring in device control apps.

Since: 11

Related module: Sensor

Header file: oh_sensor_type.h