Name Date Size

..25-Oct-20244 KiB

.gitignoreH A D25-Oct-2024119

AppScope/H25-Oct-20244 KiB

build-profile.json5H A D25-Oct-20241.1 KiB

DMSample测试用例报告.mdH A D25-Oct-20242.9 KiB

entry/H25-Oct-20244 KiB

hvigor/H25-Oct-20244 KiB

hvigorfile.tsH A D25-Oct-2024159

hvigorwH A D25-Oct-20242 KiB

hvigorw.batH A D25-Oct-20242 KiB

oh-package.json5H A D25-Oct-2024824

ohosTest.mdH A D25-Oct-20241.1 KiB

README.mdH A D25-Oct-2024852

README_zh.mdH A D25-Oct-20244.7 KiB

screenshots/device/H25-Oct-20244 KiB

README.md

1# DeviceManager
2
3
4
5### Introduction
6
7This sample shows the use of the **DeviceManager** API in eTS, including obtaining the trusted device list, scanning for devices, authenticating devices, and subscribing to device status changes.
8
9### Usage
10
111. The sample app automatically obtains the trusted devices and displays them in the **online** state on the device list. It also scans for devices and displays the discovered devices in the **discover** state on the device list.
12
132. Touch a device in the **discover** state to trigger authentication. After the authentication is complete, the page is automatically refreshed.
14
153. Subscribe to device status changes. When the device status changes, the page is automatically refreshed.
16
17### Constraints
18
191. This sample requires a networking test.
20
212. This sample can only be run on standard-system devices.
22