harmony 鸿蒙Sensor Error Codes
Sensor Error Codes
NOTE
This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
14500101 Service Exception
Error Message
Service exception.
Description
This error code is reported if the HDI service is abnormal when the on, once, or off API of the sensor module is called.
Possible Causes
The HDI service is abnormal.
Solution
- Retry the operation at a specified interval (for example, 1s) or at an exponential increase interval.
- If the operation fails for three consecutive times, stop the retry. You can also attempt to obtain the sensor list to check for device availability.
14500102 Sensor Not Supported by the Device
Error Message
The sensor is not supported by the device.
Description
This error code is reported if the GetSingleSensor API is called to obtain a sensor that is not supported by the device.
Possible Causes
The device does not support the sensor because the underlying components are not adaptable to the sensor.
Solution
- Adapt the underlying components to the sensor.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Vibrator_FileDescription
harmony 鸿蒙Vibrator Error Codes
harmony 鸿蒙@ohos.sensor (Sensor) (System API)
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦