Skip to content
Snippets Groups Projects
Commit 23d49a57 authored by Elisa Giglio's avatar Elisa Giglio
Browse files

risolto alcuni errori

parent 2df518f0
No related branches found
No related tags found
No related merge requests found
No preview for this file type
{"soglia":30,"stato":0,"valore":0,"tempoAllarme":"2022-07-24T19:48:50.175953"}
\ No newline at end of file
{"soglia":100,"stato":1,"valore":0,"tempoAllarme":"2022-07-24T20:28:17.430601"}
\ No newline at end of file
......@@ -39,7 +39,7 @@ public class Esecutore extends Thread {
}
public void run() {
final long DURATA_SUONO = 5; // l'allarme dura 5 minuti e poi smette di suonare.
final long DURATA_SUONO = 1; // l'allarme dura 1 minuti e poi smette di suonare.
int delta;
int valoreToSend = valore; // ogni volta che aumento / diminuisco il valore di 5, notifico la web app pubblicando un messaggio
while(true) {
......@@ -75,6 +75,7 @@ public class Esecutore extends Thread {
}
}
statoJson.put("soglia", soglia);
statoJson.put("stato", automa.getStatoAutoma());
Helper.scriviFile(statoJson, Automa.FILE_STATO);
}
catch (JSONException e) {
......
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