if(!file.print(metadata))Serial.println("DataLogger: failed to write to file");
if(!file.print(metadata))Serial.println("DataLogger: failed to write to file");
if(!file.print("time,distance,speed,battery voltage,battery output current,temperature,altitude,latitude,longitude, log button\n"))Serial.println("DataLogger: failed to write to file");
if(!file.print("time s,distance cm,speed m/s,battery voltage V,battery output current A,temperature C,altitude m,latitude,longitude, log button\n"))Serial.println("DataLogger: failed to write to file");
constfloatwheelTotalCircumeferenceMeters=1.60f;// measuring how much the vehicle advances for one turn of the wheel is more precise than calculating from the wheel diameter
constfloatwheelTotalCircumeferenceMeters=1.60f;// measuring how much the vehicle advances for one turn of the wheel is more precise than calculating from the wheel diameter
// It works by broadcasting a request for a host name on the local network, and the device directly sends its IP address in response
// It works by broadcasting a request for a host name on the local network, and the device directly sends its IP address in response
// Unfortunately, some systems do not support mDNS (e.g. Android), so they won't use it at all.
// Unfortunately, some systems do not support mDNS (e.g. Android), so they won't use it at all.
// To access through mDNS, remember to add the ".local" suffix to the host name (for example if host name is "vmon", access it at URL "https://vmon.local")
// To access through mDNS, remember to add the ".local" suffix to the host name (for example if host name is "vmon", access it at URL "https://vmon.local")
Serial.print("Starting mDNS server with hostname \"");
/*Serial.print("Starting mDNS server with hostname \"");