BeeTee icon indicating copy to clipboard operation
BeeTee copied to clipboard

Interested in Swift version and framework-support

Open michaeldorner opened this issue 8 years ago β€’ 14 comments

Are there any interests in a Swift version and refactoring the code into a Xcode standalone-framework?

michaeldorner avatar Jan 03 '16 17:01 michaeldorner

Yes!

Sent from my iPhone

On 3 Jan 2016, at 18:20, Michael Dorner [email protected] wrote:

Are there any interests in a Swift version and refactoring the code into a Xcode standalone-framework?

β€” Reply to this email directly or view it on GitHub.

simgul-1 avatar Jan 03 '16 17:01 simgul-1

Yeah! +1

jbarmanet avatar May 01 '16 06:05 jbarmanet

Definitely πŸ‘πŸ»

cansurmeli avatar May 01 '16 18:05 cansurmeli

+1

alanscarpa avatar Jun 01 '16 23:06 alanscarpa

Hi!

ΒΏAny news there? I trying to use your MDBluetooth... classes in a swift project, but when I try to use the Bluetooth private headers, i'm getting this error:

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_BluetoothManager", referenced from: objc-class-ref in BluetoothViewController.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I made a bridging header that just imports your MDBluetoothHeader class (this class is internally calling BluetoothHeader, MDBluetoothDevice, ...) but I don't know if it is wrong.

`#ifndef Demo_Bridging_Header_h #define Demo_Bridging_Header_h

#import "MDBluetoothManager.h"

#endif `

Do you know if i should import anything else?

Thanks and best regards!

llKoull avatar Dec 09 '16 16:12 llKoull

Unfortunately I don't have time at the moment for working at BeeTee; maybe while christmas.

michaeldorner avatar Dec 09 '16 16:12 michaeldorner

Hi @michaeldorner !

Thanks for your fast answer ;) And no one tried to use your actual code (written in Objective-C) in a Swift project using Bridging headers?

Best regards,

llKoull avatar Dec 09 '16 16:12 llKoull

I've got some feedback, that is works, even for iOS 10.1.1.

michaeldorner avatar Dec 09 '16 16:12 michaeldorner

Yeah, I tried to compile your BeeTee project directly downloaded from your repo and It worked in my iPhone 7 with the latest iOS version. The problem is when i try to import your MDBluetooth... classes into another project that is written in swift.

llKoull avatar Dec 09 '16 16:12 llKoull

Santa Claus brought some Christmas presents: BeeTee 3 in Swift and completely refactored! Let me know what you think about it!

Merry Christmas and a happy new year!

michaeldorner avatar Dec 24 '16 14:12 michaeldorner

Thanks Michael! I will try It ^_^

Does anyone know if this can be used to send/receive data from a bluetooth device??

Merry Christmas!!! πŸ˜„πŸ˜„πŸ˜„

llKoull avatar Dec 24 '16 14:12 llKoull

Thank you Michael, great job. Not tried yet but eager to... after Xmas Party :) Merry Christmas!

jbarmanet avatar Dec 24 '16 15:12 jbarmanet

@llKoull I haven't checked this so far, but connecting is still the hardest part.

michaeldorner avatar Dec 25 '16 17:12 michaeldorner

@michaeldorner thanks to your code, now i can search, connect and disconnect bluetooth devices πŸ˜„

But I don't even know which method can be used to transfer data, I tried trough the private frameworks, using the External Accessory framework or the GameKit framework, but i'm not able to send and/or receive information :S

It seems that the private framework does not have any method for this propose (or i did not find it).

Thanks!

llKoull avatar Dec 27 '16 07:12 llKoull