We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current code is
switch (startOption) { case DIStartAdvertisingAndDetecting: _shouldAdvertise = YES; _shouldDiscover = YES; break; case DIStartAdvertisingOnly: _shouldAdvertise = YES; break; case DIStartDetectingOnly: _shouldDiscover = YES; break; case DIStartNone: default: break; }
but, setting properties instead of setting ivars is necessary because otherwise Discovery won't start ad and scan.
switch (startOption) { case DIStartAdvertisingAndDetecting: self.shouldAdvertise = YES; self.shouldDiscover = YES; break; case DIStartAdvertisingOnly: self.shouldAdvertise = YES; break; case DIStartDetectingOnly: self.shouldDiscover = YES; break; case DIStartNone: default: break; }
The text was updated successfully, but these errors were encountered:
The current workaround is
discovery = Discovery(UUID: uuid, username: UIDevice.currentDevice().name, startOption:DIStartOptions.None, usersBlock: { (users: [AnyObject]!, usersChanged: Bool) -> Void in println("CH", usersChanged) println("OK", users.count) }) discovery.shouldAdvertise = true discovery.shouldDiscover = true
Sorry, something went wrong.
No branches or pull requests
The current code is
but, setting properties instead of setting ivars is necessary because otherwise Discovery won't start ad and scan.
The text was updated successfully, but these errors were encountered: