I want to pass the username and password into the function to initialize the wi-fi.
Code: Select all
void initialize_wifi_sta(uint8_t inSSID[], uint8_t inPassword[])
{
uint8_t fred1[32];
uint8_t fred2[32];
std::copy(std::begin(fred1), std::end(fred1), std::begin(fred2));
wifi_config_t myWifiConfiguration;
std::copy(std::begin(*inSSID), std::end(*inSSID), std::begin(myWifiConfiguration.sta.ssid));
}
Thanks,