code: public boolean sendOk(String method, Object params) throws CommandExecutionException {
          return sendToArray(method, params).optString(0).toLowerCase().equals("ok");
      }
docs: Send a command to a device. If no IP has been specified, this will try do discover a device on the network.
  @param method The method to execute on the device.
  @param params The command to execute on the device. Must be a JSONArray or JSONObject.
  @return True if a ok was received from the device.
  @throws CommandExecutionException When there has been a error during the communication or the response was invalid.