public function watch($enable = true, $format = 'json'){
        if($enable){
            fwrite($this->stream, '?WATCH={"enable":true,"'.$format.'":true}');
        }else{
            fwrite($this->stream, '?WATCH={"enable":false}');
        }
    }
public function watch($enable = true, $format = 'json'){
        if($enable){
            fwrite($this->stream, '?WATCH={"enable":true,"'.$format.'":true}');
        }else{
            fwrite($this->stream, '?WATCH={"enable":false}');
        }
    }
public function watch ( $ enable = true , $ format = 'json' ) { if ( $ enable ) { fwrite ( $ this -> stream , '?WATCH={"enable":true,"' . $ format . '":true}' ) ; } else { fwrite ( $ this -> stream , '?WATCH={"enable":false}' ) ; } }
Set service watch settings

@param bool $enable tell the service to watch or not the devices (default: true)
@param string $format the desired format of the returned datas (default: json)
Set service watch settings