code: func (h *HCI) SetAdvertisement(ad []byte, sr []byte) error {
  	if len(ad) > adv.MaxEIRPacketLength || len(sr) > adv.MaxEIRPacketLength {
  		return ble.ErrEIRPacketTooLong
  	}
  
  	h.params.advData.AdvertisingDataLength = uint8(len(ad))
  	copy(h.params.advData.AdvertisingData[:], ad)
  	if err := h.Send(&h.params.advData, nil); err != nil {
  		return err
  	}
  
  	h.params.scanResp.ScanResponseDataLength = uint8(len(sr))
  	copy(h.params.scanResp.ScanResponseData[:], sr)
  	if err := h.Send(&h.params.scanResp, nil); err != nil {
  		return err
  	}
  	return nil
  }
docs: // SetAdvertisement sets advertising data and scanResp.