docs: public void write(ByteBuffer... data) throws IllegalStateException, IOException{
          // write each byte buffer to the serial port
          for(ByteBuffer single : data) {
  
              // read the byte buffer from the current position up to the limit
              byte[] payload = new byte[single.remaining()];
              single.get(payload);
  
              write(payload);
          }
      }