Forum Xamarin.Android

receive bluetooth message

my bluetooth device (bluegiga) send message "hi" how I take this message at my program? i try this code

public class BluetoothConnectionManager : BroadcastReceiver
    {
         public override void OnReceive(Context context, Intent intent)
        {
            var action = intent.Action;
            if (BluetoothDevice.ActionAclConnected.Equals(action)) // connected device
            {
            }
            else if (BluetoothDevice.ActionAclDisconnected.Equals(action)) //disconnected
            {   }

        }
    }

my OnReceive not receive bluetooth message, what could be the problem?

Sign In or Register to comment.