• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Distributed Device Management Changelog
2
3## cl.distributedDeviceManager.1 Error Code Changes of Distributed Device Management APIs
4
5**Access Level**
6
7Public API
8
9**Reason for Change**
10
11- The possible causes of error code 401 are as follows: 1. Mandatory parameters not specified. 2. Incorrect parameter type. 3. Parameter verification failed.
12
13  The** getAvailableDeviceListSync** and **stopDiscovering** APIs do not have any input parameters. Therefore, error code 401 needs to be deleted.
14
15- Error code 11600104 may occur if the previous discovery has not ended.
16
17  Since **stopDiscovering** API will never trigger this error, error code 11600104 needs to be deleted.
18
19- Error code 201 is possibly due to permission verification failure.
20
21  The **releaseDeviceManager** and **createDeviceManager** APIs are used in pairs, and their permission verification logic is consistent. Since **createDeviceManager** does not involve permission verification, error code 201 needs to be deleted.
22
23**Change Impact**
24
25This change does not require application adaptation.
26
27- Before change: The @ohos.distributedDeviceManager module includes error code 201 in the **releaseDeviceManager** function declaration.
28
29  **After change**: The @ohos.distributedDeviceManager module does not include error code 201 in the **releaseDeviceManager** function declaration.
30
31- Before change: The @ohos.distributedDeviceManager module includes the error code 401 in the **getAvailableDeviceListSync** function declaration.
32
33  After change: The @ohos.distributedDeviceManager module does not include error code 401 in the **getAvailableDeviceListSync** function declaration.
34
35- Before change: The @ohos.distributedDeviceManager module includes the error codes 401 and 11600104 in the **stopDiscovering** function declaration.
36
37  After change: The @ohos.distributedDeviceManager module does not include error codes 401 and 11600104 in the **stopDiscovering** function declaration.
38
39**Start API Level**
40
4110
42
43**Change Since**
44
45OpenHarmony SDK 5.1.0.54
46
47**Key API/Component Changes**
48
49This change involves the update of the comments of the following modules:
50
51| Module                               | Class               | API Declaration                                                  |Change Description   |
52| ------------------------------------ | ------------------- | ------------------------------------------------------------ | -------------- |
53| @ohos.distributedDeviceManager       | function             | **function** releaseDeviceManager(deviceManager: DeviceManager): void; | Deleted error code 201.|
54| @ohos.distributedDeviceManager       | DeviceManager        | **function** getAvailableDeviceListSync(): Array<DeviceBasicInfo>; | Deleted error code 401.|
55| @ohos.distributedDeviceManager       | DeviceManager        | **function** stopDiscovering(): void; | Deleted error codes 401 and 11600104.  |
56
57**Adaptation Guide**
58
59No adaptation is required.
60