How to connect TinyDuino to Arduino 101 using CurieBLE

Hello,

I am trying to pair Arduino 101 with Tiny Duino using Bluetooth BLE technology.

Unfortunately, I am not able to find the proper APIs and really quite understand how to go about doing this.

I was able to use my phone and connect to arduino 101 but when I look at that code, it is hard to understand how to make TinyDuino listen for the advertised service and connect automatically to Arduino 101 in read mode.

Thanks