Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make the library compatible with swift and run BT in the background #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

pec1985
Copy link

@pec1985 pec1985 commented Apr 22, 2016

To make the library compatible with Swift, I had to change the name of this method,
-(void)didReceiveData:(NSData*)data Device:(DFBlunoDevice*)dev;
to
-(void)didReceiveData:(NSData*)data device:(DFBlunoDevice*)dev;
(Notice the lowercase D in device)
I also added a queue for the Bluetooth Networking, and added a property to make the callbacks happen on the main thread or background thread. For my personal use case, I need everything on a background thread.

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

Successfully merging this pull request may close these issues.

1 participant