forked from airgradienthq/arduino
Downloaded filename and AP ssid
ap ssid format have serial number filname have last 4 digit serial number
This commit is contained in:
1 parent
6cb06986c3
commit
430e908d88
2 files changed
+7
-2
No files matched your search
@@ -81,7 +81,9 @@ void LocalServer::_GET_dashboard(void) {
|
||||
void LocalServer::_GET_storage(void) {
|
||||
char *data = measure.getLocalStorage();
|
||||
if (data != nullptr) {
|
||||
server.sendHeader("Content-Disposition", "attachment; filename=\"measurements.csv\"");
|
||||
String filename =
|
||||
"measurements-" + ag->deviceId().substring(8) + ".csv"; // measurements-fdsa.csv
|
||||
server.sendHeader("Content-Disposition", "attachment; filename=\"" + filename + "\"");
|
||||
server.send(200, "text/plain", data);
|
||||
free(data);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user