Skip to content

Commit

Permalink
Merge pull request #8 from lukeswitz/Fix-ssid-csv
Browse files Browse the repository at this point in the history
#1 Sanitize SSID for CSV output
  • Loading branch information
AlexLynd authored Aug 17, 2023
2 parents 88a5b8a + e8d0b49 commit 2c42214
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Wardriver/src/Wardriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ void scanNets() {
if (WiFi.encryptionType(i) == WIFI_AUTH_OPEN) openNets++;
#endif

sprintf(entry,"%s,%s,%s,%s,%u,%i,%f,%f,%i,%f,WIFI", WiFi.BSSIDstr(i).c_str(), WiFi.SSID(i).c_str(),authType,strDateTime,WiFi.channel(i),WiFi.RSSI(i),lat,lng,alt,hdop);
sprintf(entry,"%s,\"%s\",%s,%s,%u,%i,%f,%f,%i,%f,WIFI", WiFi.BSSIDstr(i).c_str(), WiFi.SSID(i).c_str(),authType,strDateTime,WiFi.channel(i),WiFi.RSSI(i),lat,lng,alt,hdop);

Serial.println(entry);
Filesys::write(entry);
}
Expand Down

0 comments on commit 2c42214

Please sign in to comment.