code: func (ble *BLE) StartScanning(serviceUuids []xpc.UUID, allowDuplicates bool) {
  	uuids := []string{}
  
  	for _, uuid := range serviceUuids {
  		uuids = append(uuids, uuid.String())
  	}
  
  	args := xpc.Dict{"kCBMsgArgUUIDs": uuids}
  	if allowDuplicates {
  		args["kCBMsgArgOptions"] = xpc.Dict{"kCBScanOptionAllowDuplicates": 1}
  	} else {
  		args["kCBMsgArgOptions"] = xpc.Dict{}
  	}
  
  	ble.allowDuplicates = allowDuplicates
  	msg := 29
  	if ble.utsname.Release >= "18." {
  		msg = 46
  	} else if ble.utsname.Release >= "17." {
  		msg = 44
  	}
  	ble.sendCBMsg(msg, args)
  }
docs: // start scanning