Skip to content
New issue

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

BLE framework meets swift #17

Merged
merged 2 commits into from
Jun 16, 2015
Merged

Conversation

FernandoReynoso
Copy link
Contributor

BLE framework migrated to swift.
Including the following:

Public methods
func startScanning(timeout: Double) -> Bool
func connectToPeripheral(peripheral: CBPeripheral) -> Bool
func disconnectFromPeripheral(peripheral: CBPeripheral) -> Bool
func read()
func write(#data: NSData)
func enableNotifications(enable: Bool)
func readRSSI(completion: (RSSI: NSNumber?, error: NSError?) -> ())

Delegate methods
func bleDidUpdateState()
func bleDidConnectToPeripheral()
func bleDidDisconenctFromPeripheral()
func bleDidReceiveData(data: NSData?)

Cheong2K added a commit that referenced this pull request Jun 16, 2015
@Cheong2K Cheong2K merged commit e224804 into RedBearLab:master Jun 16, 2015
@Cheong2K
Copy link
Contributor

Great job! Thanks.

@FernandoReynoso
Copy link
Contributor Author

Thank you! A pleasure to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants