brand、model 可通过API @ohos.deviceInfo (设备信息) 获取;参考链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-device-info-V5mac地址权限:“ohos.permission.GET\_WIFI\_INFO”代码:wifiManager.getLinkedInfo().then( data => { console.info("get wifi linked info: " + JSON.stringify(data)); }).catch((error:number) => { console.info("get linked info error"); });参考链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-wifimanager-V5\#wifimanagergetlinkedinfo9
brand、model 可通过API @ohos.deviceInfo (设备信息) 获取;
参考链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-device-info-V5
mac地址
权限:“ohos.permission.GET\_WIFI\_INFO”
代码:
参考链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-wifimanager-V5\#wifimanagergetlinkedinfo9