输入networkId获取设备信息

Signed-off-by: 史晓晓 <shixiaoxiao.30044129@huawei.com>
This commit is contained in:
史晓晓 2023-04-03 16:47:31 +08:00
parent fa4e57d8a3
commit 1fc3f7c941

View File

@ -463,7 +463,7 @@ declare namespace deviceManager {
* @param { string } networkId - device network id.
* @param { AsyncCallback<DeviceInfo> } callback - Indicates the callback to be invoked upon getDeviceInfo.
* @throws { BusinessError } 401 - Input parameter error.
* @return Returns local device info.
* @returns Returns local device info.
* @systemapi this method can be used only by system applications.
*/
getDeviceInfo(networkId: string, callback: AsyncCallback<DeviceInfo>): void;
@ -474,7 +474,7 @@ declare namespace deviceManager {
* @since 10
* @param { string } networkId - device network id.
* @throws { BusinessError } 401 - Input parameter error.
* @return Returns local device info.
* @returns Returns local device info.
* @systemapi this method can be used only by system applications.
*/
getDeviceInfo(networkId: string): Promise<DeviceInfo>;