How to connect smart trainer with Unity 3D

Hi, I am creating a bicycle simulator where the user would be pedalling a bicycle paired with a WAHOO smart trainer. Hence, I was wondering how to connect the smart trainer to the Unity 3D interface in order to control the on screen avatar. Do I need create a script to do that or do I need to access some sort of online server. Do provide a guide. Thanks.