Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Plugin for Unity that enables Bluetooth communication in Android devices.

Notifications You must be signed in to change notification settings

dan3143/android-bluetooth-plugin

Repository files navigation

Bluetooth for Unity

This is a plugin for Unity that enables Bluetooth communication for Android devices.

How to use

Just import android-bluetooth-plugin.unitypackage into your project, and use the BluetoothServer and BluetoothClient classes at your convenience.

For example, if you want to start a server that sends "Hello" to any client that connects to it, you could attacth this to your script:

BluetoothServer server = new BluetoothServer();
server.Start();
server.ClientConnected += (sender, e) => {
  server.SendTo("Hello", e.Sender.address);
}

You can check the documentation in the wiki for more information.

About

Plugin for Unity that enables Bluetooth communication in Android devices.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published