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 {
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]"))
throw new IllegalArgumentException("attivaScenari non corretto");
// write attivaScenari to the file zona
......@@ -184,7 +184,7 @@ public class Scenari {
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]"))
throw new IllegalArgumentException("luceAntifurto non corretta");
// write luceAntifurto to the file zona
......@@ -196,7 +196,7 @@ public class Scenari {
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]"))
throw new IllegalArgumentException("learnTrigger non corretto");
// 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