Skip to content
Snippets Groups Projects
Commit 914e9654 authored by alfredo's avatar alfredo
Browse files

mannaggia a te

parent 71268067
No related branches found
No related tags found
No related merge requests found
...@@ -168,7 +168,7 @@ public class Scenari { ...@@ -168,7 +168,7 @@ public class Scenari {
return attivaScenari; return attivaScenari;
} }
public void setAttivaScenari(String attivaScenari) throws JSONException, IOException{ public void setAttivaScenari(String attivaScenari) throws JSONException, IOException, MqttException {
if(!attivaScenari.matches("(IN|in)[0-7]")) if(!attivaScenari.matches("(IN|in)[0-7]"))
throw new IllegalArgumentException("attivaScenari non corretto"); throw new IllegalArgumentException("attivaScenari non corretto");
// write attivaScenari to the file zona // write attivaScenari to the file zona
...@@ -184,7 +184,7 @@ public class Scenari { ...@@ -184,7 +184,7 @@ public class Scenari {
return luceAntifurto; return luceAntifurto;
} }
public void setLuceAntifurto(String luceAntifurto) throws JSONException, IOException{ public void setLuceAntifurto(String luceAntifurto) throws JSONException, IOException, MqttException{
if(!luceAntifurto.matches("(OUT|out)[0-7]")) if(!luceAntifurto.matches("(OUT|out)[0-7]"))
throw new IllegalArgumentException("luceAntifurto non corretta"); throw new IllegalArgumentException("luceAntifurto non corretta");
// write luceAntifurto to the file zona // write luceAntifurto to the file zona
...@@ -196,7 +196,7 @@ public class Scenari { ...@@ -196,7 +196,7 @@ public class Scenari {
this.luceAntifurto = luceAntifurto; this.luceAntifurto = luceAntifurto;
} }
public void setLearnTrigger(String learnTrigger) throws JSONException, IOException{ public void setLearnTrigger(String learnTrigger) throws JSONException, IOException, MqttException{
if(!learnTrigger.matches("(IN|in)[0-7]")) if(!learnTrigger.matches("(IN|in)[0-7]"))
throw new IllegalArgumentException("learnTrigger non corretto"); throw new IllegalArgumentException("learnTrigger non corretto");
// write learnTrigger to the file zona // write learnTrigger to the file zona
......
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