添加日期:11
协议
设备
在 fuchsia.hardware.temperature/temperature.fidl 中定义
GetSensorName
添加日期:14
请求
<EMPTY>
响应
名称 | 类型 |
---|---|
name |
SensorName
|
GetTemperatureCelsius
获取当前温度(摄氏度)。
请求
<EMPTY>
响应
名称 | 类型 |
---|---|
status |
zx/Status
|
temp |
float32
|
常量
名称 | 值 | 类型 | 说明 |
---|---|---|---|
MAX_SENSOR_NAME_LEN |
256
|
uint32 |
添加日期:14
|
ALIASES
名称 | 值 | 说明 |
---|---|---|
SensorName |
string [MAX_SENSOR_NAME_LEN ] |
一个任意且易于阅读的字符串,用于唯一标识温度传感器。 添加日期:14
|
服务
服务
在 fuchsia.hardware.temperature/temperature.fidl 中定义
名称 | 类型 | 传输 |
---|---|---|
device |
fuchsia.hardware.temperature/Device
|
频道 |