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
- 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. 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
- 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.
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
- 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.
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
- Enter correct parameters by referring to the API document.