Ok so I am trying to record the bluetooth data sent from another app and was wondering if that's possible. Operating system is androind, language is Java.
you can enable "Bluetooth HCI snoop log" in developer settings. This generates a binary file you can explore for example with Wireshark.
More details on this process here, but you might need to adopt it to your actual android version.