#include "wifi_device.h"
WifiDeviceConfig config = {0};
int netId = -1;
// 准备AP的配置参数
strcpy(config.ssid, "ssid");
strcpy(config.preSharedKey, "密码");
config.securityType = WIFI_SEC_TYPE_PSK;//加密方式,详见wifi_device_config.h
EnableWifi();
osDelay(10);
AddDeviceConfig(&config, &netId);
ConnectTo(netId);
Neptune开发板 wifi连接
最新推荐文章于 2023-07-10 23:41:14 发布