# sensors_sensor_lite **Repository Path**: cff-gite/sensors_sensor_lite ## Basic Information - **Project Name**: sensors_sensor_lite - **Description**: Obtaining sensor data | 获取传感器数据 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 94 - **Created**: 2023-09-04 - **Last Updated**: 2024-01-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Sensor\_lite组件 - [简介](#section11660541593) - [目录](#section161941989596) - [说明](#section1312121216216) - [接口说明](#section827111510217) - [使用说明](#section129654513264) - [相关仓](#section1371113476307) ## 简介 泛Sensor服务子系统提供了轻量级sensor服务基础框架,提供了如下功能: - Sensor列表查询 - Sensor启停 - Sensor订阅/去订阅 - 设置数据上报模式 - 设置采样间隔等 泛Sensor服务框架如下图所示: **图 1** 泛Sensor服务框架图  ## 目录 ``` /base/sensors/sensor_lite ├── frameworks # 框架代码 │ ├── include # 头文件目录 │ └── src # 源代码目录 ├── interfaces # 接口目录 │ └── kits # Native接口目录 ├── services # 服务代码目录 │ ├── include # 头文件目录 │ └── src # 源代码目录 ``` ## 说明 ### 接口说明 **表 1** SensorAgent的主要接口
SetBatch(int32_t sensorTypeId, SensorUser *user, int64_t samplingInterval, int64_t reportInterval) |
|
SetMode(int32_t sensorTypeId, SensorUser *user, int32_t mode) |