openharmony 鸿蒙 errorcode-spatialAwareness

2026-08-25 浏览 (2)

Spatial Awareness Error Codes

Notes:

This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.

35100001 Service Exception

Error Message

Service exception.

Description

This error code is reported if a service exception occurs when the onDistanceMeasure, onIndoorOrOutdoorIdentify, offDistanceMeasure, or offIndoorOrOutdoorIdentify API of the distanceMeasurement module is called.

Possible Causes

The service status is abnormal.

Procedure

  1. Retry the operation at a specified interval (for example, 1s) or at an exponential increase interval.
  2. If the operation fails for three consecutive times, stop the retry. During this period, you can preferentially obtain the device list to check for device availability.

35100002 Subscription Failed

Error Message

Subscription failed.

Description

This error code is reported if the subscription fails when the onDistanceMeasure or onIndoorOrOutdoorIdentify API of the distanceMeasurement module is called.

Possible Causes

Subscription error.

Procedure

  1. Retry the operation at a specified interval (for example, 1s) or at an exponential increase interval.
  2. If the operation fails for three consecutive times, stop the retry.

35100003 Unsubscription Failed

Error Message

Unsubscription failed.

Description

This error code is reported if the unsubscription fails when the offDistanceMeasure or offIndoorOrOutdoorIdentify API of the distanceMeasurement module is called.

Possible Causes

Unsubscription from status change events has failed.

Procedure

  1. Retry the operation at a specified interval (for example, 1s) or at an exponential increase interval.
  2. If the operation fails for three consecutive times, stop the retry.

35100004 Invalid Parameter

Error Message

Parameter invalid.

Description

This error code is reported when the distance measurement API of the distanceMeasurement module is called but the parameter value is out of range.

Possible Causes

The parameter value is out of range.

Procedure

  1. Enter correct parameters by referring to the API document.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 errorcode-onScreen

openharmony 鸿蒙 js-apis-awareness-metadataBinding-sys

openharmony 鸿蒙 errorcode-metadataBinding

openharmony 鸿蒙 js-apis-awareness-deviceStatus-sys

openharmony 鸿蒙 js-apis-awareness-motion

openharmony 鸿蒙 js-apis-awareness-metadataBinding

openharmony 鸿蒙 Readme-EN

openharmony 鸿蒙 errorcode-userStatus

openharmony 鸿蒙 errorcode-deviceStatus

openharmony 鸿蒙 js-apis-awareness-onScreen-sys

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/f6M5sOVP