I haven't made this, but out of interest I researched a bit.
The last link provides source code for integration with the Bluetooth controller (warning: it is called cheap and unreliable by a reviewer)
It isn't B4X but you might find the message protocol.