How to initialize code for rolling spider?



I have a rolling spider which I control through Ubuntu 14.04 and program in C.

I was wondering how to initialize the connection between the robot and the computer (in code)? There are a lot of functions for this for other robots but they don’t apply to rolling spider as it is a Bluetooth drone.

Thank you very much.