code: public IoTSetResponse setUsingIq(FullJid jid, Collection<? extends SetData> data) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
          IoTSetRequest request = new IoTSetRequest(data);
          request.setTo(jid);
          IoTSetResponse response = connection().createStanzaCollectorAndSend(request).nextResultOrThrow();
          return response;
      }
docs: Control a thing by sending a collection of {@link SetData} instructions.
  
  @param jid the thing to control.
  @param data a collection of {@link SetData} instructions.
  @return the {@link IoTSetResponse} if successful.
  @throws NoResponseException
  @throws XMPPErrorException
  @throws NotConnectedException
  @throws InterruptedException