btleplug icon indicating copy to clipboard operation
btleplug copied to clipboard

OpenHarmony support.

Open laxian opened this issue 1 year ago • 8 comments

Feature Description

HarmonyOS NEXT is coming. I want to use btleplug in my HarmonyOS App.

I want to use this library in harmonyOS project, could you consider supporting it? Or if there's anyone with the same interests.

laxian avatar Jul 16 '24 03:07 laxian

Seeing as this is literally the first I've ever heard of HarmonyOS: No, no interest in supporting it at this time.

I'll leave this open, but I doubt we'd even take a PR at this point, because support for a whole platform is too much of a support burden for too small of a user base (we've never had any requests for this before).

qdot avatar Jul 16 '24 05:07 qdot

Seeing as this is literally the first I've ever heard of HarmonyOS: No, no interest in supporting it at this time.

I'll leave this open, but I doubt we'd even take a PR at this point, because support for a whole platform is too much of a support burden for too small of a user base (we've never had any requests for this before).

OpenHarmony is NOT too small of a user base

laxian avatar Jul 19 '24 03:07 laxian

可以试试ohos-rs来编译它

mdddj avatar Jul 23 '24 03:07 mdddj

可以试试ohos-rs来编译它

我目前已经在使用ohos-rs在实现了

laxian avatar Jul 29 '24 09:07 laxian

You don't have to choose btleplug which is originally a support crate for the authors money maker buttplug. There are some other alternatives like bluest, you can add support for one of them, otherwise just create a separate library.

Put the big icon of buttplug and the logo of HarmonyOS together and look at this insult... Is that really what you want?! Do you really agree that HarmonyOS can be an ***hole?

wuwbobo2021 avatar Feb 20 '25 16:02 wuwbobo2021

You don't have to choose btleplug which is originally a support crate for the authors money maker buttplug. There are some other alternatives like bluest, you can add support for one of them, otherwise just create a separate library.

Put the big icon of buttplug and the logo of HarmonyOS together and look at this insult... Is that really what you want?! Do you really agree that HarmonyOS can be an ***hole?

bluest doesn’t support android Android support is planned.

laxian avatar Feb 21 '25 04:02 laxian

Ok, having at least taken a look at the oh bluetooth layer, it doesn't look... that out of the question? Like there's C exposure of the GATT API and all, though I admittedly haven't looked at how ohos-rs handles those exports yet. I was mainly worried we'd be up against more java or something.

That said, I'm sitting here in a country that has little OH traction that I'm aware of (and I'm an embedded dev by trade so I feel like I at least have some idea of what's popular in my own region :) ), with no clue how much of a userbase there is for this elsewhere in the world. The gitee project has some impressive numbers (the github fork, not so much), but what's the rust ecosystem like on openharmony? As I see it, we currently have 2 users on this issue asking us to add a whole new platform to our library, which means maintenance, upkeep, etc... That's a lot to be asking if 1-2 people just want to use this.

qdot avatar Feb 21 '25 08:02 qdot

(Also, somewhat offtopic: What's the situation with flutter on openharmony? Does it work ok? :) )

qdot avatar Feb 21 '25 08:02 qdot