Statistics: Posted by FrenkR — Wed Sep 14, 2016 5:42 pm
Statistics: Posted by eriksl — Mon Sep 12, 2016 9:40 pm
Statistics: Posted by Guest — Thu Sep 08, 2016 12:15 pm
Code:
struct station_config * confSTA;
confSTA = (struct station_config *) os_zalloc(sizeof(struct station_config));
wifi_station_get_config(confSTA);
// os_bzero(confSTA->ssid); <-- if I use this one, then wifi_station_set_config() triggers wdt reset!
os_bzero(confSTA->ssid, sizeof(confSTA->ssid)); // this one is working
if (os_strlen(_userSettings->wifiSsid) > 0)
os_sprintf(confSTA->ssid, "%s", _userSettings->wifiSsid);
wifi_station_set_config(confSTA); // this function fails if os_bzero() has no length specified as a second argument
os_free(confSTA);
Statistics: Posted by FrenkR — Tue Sep 06, 2016 5:04 pm