harmony 鸿蒙Pan-Sensor Development

  • 2023-06-24
  • 浏览 (963)

Pan-Sensor Development

Are the APIs used for obtaining PPG and ECG sensor data open to individual developers? (API version 9)

Data collected by the PPG and ECG sensors of wearable devices is personal privacy data. Therefore, relative APIs are not open to individual developers.

What should I do when error code 201 is reported during the calling of a vibrator API? (API version 9)

Symptom

The following error message (error code 201) is reported when an API of the vibrator module is called:

vibrate fail, error.code: 201error.message: NaN

Solution

Permission verification failed. You must apply for the ohos.permission.VIBRATE permission.

References

Declaring Permissions

你可能感兴趣的鸿蒙文章

harmony 鸿蒙FAQs

harmony 鸿蒙Application Access Control Development

harmony 鸿蒙Application Model Development

harmony 鸿蒙ArkTS Modular Loading

harmony 鸿蒙ArkTS Common Library Development

harmony 鸿蒙ArkUI Animation/Interaction Event Development (ArkTS)

harmony 鸿蒙ArkTS Syntax Usage

harmony 鸿蒙ArkUI Component Development (ArkTS)

harmony 鸿蒙ArkUI Development (JS)

harmony 鸿蒙ArkUI Layout Development (ArkTS)

0  赞