Search Unity

C# Bluetooth Address Family?

Discussion in 'Scripting' started by sonnyt, Apr 20, 2011.

  1. sonnyt

    sonnyt

    Joined:
    Apr 5, 2011
    Posts:
    3
    I have the following c# code:

    using System.Net.Sockets;
    ...
    Socket s = new Socket((AddressFamily)32, SocketType.Stream,(ProtocolType)3);

    where 32 is the addressfamily of AF_BTH and 3 is the protocoltype BTHPROTO_RFCOMM, but apparently Unity's mono distribution does not support the bluetooth address family. Has anyone found a way around this?

    Thanks,
    -Sonny
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    what platform are we talking about here? (cause depending on it the BT support itself could not be present at all as it has to be added manually depending on platform, desktop mono does not just magically work on mobile for example)
     
  3. sonnyt

    sonnyt

    Joined:
    Apr 5, 2011
    Posts:
    3
    this is on a windows pc
     
  4. justin_iSO

    justin_iSO

    Joined:
    Jan 10, 2013
    Posts:
    18
    Calling back a zombie. Was any progress ever made on this?

    ~Justin
     
  5. SpiralConDave

    SpiralConDave

    Joined:
    Dec 29, 2014
    Posts:
    37
    Bluetooth in Unity is like the weather: people talk about it but nobody does anything about it