Sending Android gyroscope data to Unity (Win) through LAN / Bluetooth

Pretty much what the title says, does anyone know how can i send the data from an Android to Unity in real time?

Im not sure whether it would be better to use LAN or Bluetooth, nor how to send it. I have used the data in the celphone itself, but never sending it to a computer.

Any help or advise you can provide will bve more than useful
Thanks

Question seems a bit off… First are you trying to send to the Unity Editor? Or are you compiling two builds one to gather information and one to receive I have done this in the past with a pcduino dev board… What kind of information are you sending… Based on this information if your sending small amounts of data bluetooth is fine. If your sending pictures / video feed / anything related be prepared for shocking results as bluetooth has a low transfer rate might be better off sending via wifi… To allow transfer of bluetooth data to another build you will need to send what are called byte packets your must encode the data to bytes to transfer then you will need to turn that information back into what your original results were prior to encoding…

Now I would write all sorts of code here for you to use but why do that when there is a beautiful writeup here