public VacuumStatus status ( ) throws CommandExecutionException { JSONArray resp = sendToArray ( "get_status" ) ; JSONObject stat = resp . optJSONObject ( 0 ) ; if ( stat == null ) throw new CommandExecutionException ( CommandExecutionException . Error . INVALID_RESPONSE ) ; return new VacuumStatus ( stat ) ; }
Get the vacuums status .