Skip to content

Commit

Permalink
Merge pull request #400 from arduino/alrvid-patch-1
Browse files Browse the repository at this point in the history
Initialize local variable for AP config
  • Loading branch information
sebromero authored Nov 28, 2024
2 parents 1c4b997 + 1085b24 commit ea4ccce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/ESPhost/examples/ESP32_TEST/ESP32_TEST.ino
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ void connectAccessPoint() {
int i = stoi(ap_str);

Serial.println(">>> [APP]: Connecting to Access Point");
WifiApCfg_t ap;
WifiApCfg_t ap{};
memcpy(ap.ssid,access_point_list[i].ssid,SSID_LENGTH);
memcpy(ap.pwd,pwd.c_str(),pwd.size());
memcpy(ap.bssid,access_point_list[i].bssid,BSSID_LENGTH);
Expand Down

0 comments on commit ea4ccce

Please sign in to comment.