Want to add bluetooth support to multiple platforms - Need some help figuring out the specifics

In summary, I wanted to experiment with bluetooth devices to maybe set up some 4D stuff, try some new experimental input methods, and whatnot.
The main target of the project would be VR headsets, but I’d like to at least try to also support a desktop release, since I’d be leaving out quite a large demographic if I didn’t.

In my mind, the process should be simple: create a library with all the necessary input and output functions, then create a wrapper for it in unreal engine. As far as bluetooth libraries that support both desktop and android, all I’ve found is Bleak for python, which says on github is compatible with android backends thanks to python-for-android, which can create APKs, AABs and AARs. There’s also Qt but it’s licensed under GPL so that’s a no-go.

Does anyone have experience with similar processes, should this work out-of-the-box? Or should I bite the bullet and just write two separate libraries?

I also found a bluetooth support plugin in the marketplace, but it only works for android, and it is quite expensive.