Skip to content
Snippets Groups Projects
Commit f131953b authored by Malaurie Bernard's avatar Malaurie Bernard
Browse files

Add serial messages to view JSon file sizes

parent aa181350
No related branches found
No related tags found
1 merge request!17Malaurie's work on UI + CLI interface + AccelStepper interface
......@@ -98,8 +98,10 @@ void Syringe :: write_Json ()
{
InterruptLock lock; //useful thanks to its constructor (so a is not visible in the code)
File f = filesystem->open("syringe_json", "w"); //Creation du fichier
serializeJson(syringe_json, f); //remettre f a la plce de json
size_t a = serializeJson(syringe_json, f); //remettre f a la plce de json
Serial.println("Taille de syringe_json");
Serial.println(a);
f.close();
}
//useful in setup of pousse-seringue.cpp(to check at the begining what has already been saved) and web.cpp via a button to recover data
......
......@@ -336,8 +336,10 @@ void SyringeFilled :: write_Json ()
{
InterruptLock lock; //useful thanks to its constructor (so a is not visible in the code)
File f = filesystem->open("syringe_filled_json", "w"); //Creation du fichier
serializeJson(syringe_filled_json, f);
size_t a = serializeJson(syringe_filled_json, f);
Serial.println("Taille de syringe_filled_json");
Serial.println(a);
f.close();
}
//useful in setup of pousse-seringue.cpp(to check at the begining what has already been saved) and web.cpp via a button to recover data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment