关于wifi热点Hotspot的配置问题,目前官方没有文档,也没有源码,请问有没有大佬实现了的?
JS接口在这个文档里
https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.wifi.d.ts
其中
/**
* Sets the hotspot for a device.
*
* <p>Only OPEN and WPA2 PSK hotspots can be configured.
*
* @param config Indicates the Wi-Fi hotspot configuration.
* The SSID and {@code securityType} must be available and correct.
* If {@code securityType} is not {@code open}, {@code preSharedKey} must be available and correct.
* @return Returns {@code true} if the method is called successfully; returns {@code false} otherwise.
* @since 7
* @systemapi Hide this for inner system use.
*/
function setHotspotConfig(config: HotspotConfig): boolean;
只有一个接口函数,但是用法不清楚诶,也没有源码可以参考,具体该如何配置呢?
3
浏览321 发布于2022-01-07 03:30未知归属地
全部评论
最多点赞
最新发布
最早发布
写回答
新增插入模板功能
一键使用模板,快速填写内容,轻松发帖~
知道了
- 为了保障您的信息安全,请勿上传您的敏感个人信息(如您的密码等信息)和您的敏感资产信息(如关键源代码、签名私钥、调试安装包、业务日志等信息),且您需自行承担由此产生的信息泄露等安全风险。
- 如您发布的内容为转载内容,请注明内容来源。
我要发帖子
了解社区公约,与您携手共创和谐专业的开发者社区。







































苏公安网备 32011402010933号