deviceplug / btleplug

Rust Cross-Platform Host-Side Bluetooth LE Access Library
Other
779 stars 145 forks source link

Add Android Support #8

Closed qdot closed 2 years ago

qdot commented 4 years ago

Same idea as blurmac. Fork bluedroid, bring in code, fit to whatever our API surface is.

qdot commented 6 months ago

@trobanga Oh nice, thanks! I'd been waiting on frb v2 to go stable first, this'll be a nice guide once that's ready. Looks nice and clean!

Gibbz commented 1 month ago

Has there been any follow-up on a guide for getting this working? I'm about to start the process myself. And the info seems fragmented... See how I go! @qdot

lnxdxtf commented 1 month ago

Hi everyone,

I'm creating a Tauri plugin to use thermal printers. The plugin handles all permissions (ask and check) to use BLE. The crate btleplug is wrapped in a crate called eco_print. It works on desktops, but I'm having trouble making it work on mobile (Android).

I'm trying to find a way to build the crate for use in my plugin, tauri-plugin-escpos. However, I'm not sure about the exact steps needed to build the crate for Android. Any guidance on this would be greatly appreciated.

Thank you!

loikki commented 1 month ago

Hi @lnxdxtf

I would recommend taking a look at my repo. I have a tauri app with bluetooth for an indoor bike: https://gitlab.com/loikki/open-biking The modifications to the android files are all located in android-files and the commands for building / running are in my Makefile. If you have any question, feel free to open an issue in my repo

qdot commented 1 month ago

For anyone that gets btleplug running on android, please let me know! I'll try to remember to add project listings to the readme so other people can use them as examples. Posting project links here is fine.