| //set lamp brightness to the maximum value |
| Reguest(“http://212.189.207.109:8888/command/?board=boardnamel&command=analog&pin=Pll&val=100”); |
| //wait 5 min |
| try { |
| Thread.sleep (5*60*1000); |
| }catch (InterruptedException ex) { |
| Logger.getLogger(NoiseListener.class.getName() ) .log(Level.SEVERE, null, ex) ; |
| } |
| //set lamp brightness to the correct value accordingly to the time |
| LuxListener.RestoreLightintensity (); |