Documentation or examples for serial communication via bluetooth

Hi all, I was interested in finding a way to send information between a custom application on the pinball machine and another bluetooth device such as a cell phone.
Is it possible to create new rpc functions or establish a simple serial connection between 2 paired devices?
Is there a documentation or some similar application to take inspiration from?
Thank you.