muka / go-bluetooth

Golang bluetooth client based on bluez DBus interfaces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is it useable for android?

MatejMagat305 opened this issue · comments

Hi I m coding in https://github.com/fyne-io/fyne, and it can run on android, it this library suitable for android?

Hi, nice project!
This library uses the dbus APIo of bluez. I guess android uses bluez for kernel communication but not sure about it. If you find it works i would be happy to add references to your project. Thanks

So I will try it, and I will reference

I m sorry it look like android need jni ............

Can I ask you? You have some experiences about bluetooth, I plan that I will create simple golang-jni interface to create server and client and sending data between both ........, do you planing some like that or not? Because I do not want duplicate work .......... and what is "minimal" interfaces to try embeded to your code ?

@MatejMagat305 Have you finished it right now?Could you tell me more details about that?I am doing the same job.(using fyne and bluetooth.)

@jizhihaoSAMA I have no time for start(accomplish) this (Can I join to you?), but first step is permisions: https://github.com/MatejMagat305/fyne-x/tree/master/peripherals (you can fork this if ...), as you know in java is https://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html that I was planing partly rewrite as https://stackoverflow.com/questions/28991228/getting-android-bluetooth-adapter-name-from-jni-c and https://github.com/fyne-io/fyne/blob/master/internal/driver/mobile/file_android.go for stream ... (Can I join to you? it will piity to do 2x time same job...)

Well, due to uncertainty and ignorance of Android and Bluetooth, I am sorry that I selected Python-Kivy and Python-bleak to solve this.