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.
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 lowercaseD
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.