Git Product home page Git Product logo

ble-framework's Introduction

BLE framework is a Unity library that you can use to easily manage the Bluetooth communication between your mobile device and a BLE module such as ReadBearLab BLE Mini. The ReadBearLab BLE mini can be attached to a micro controller such as Arduino to allow simple wireless serial communication with your mobile device.

To get started you can use the sample Unity project in the folder Unity. It already contains everything you need to get started.

If you want to modify the plugin or study the source code, please continue reading.

Android plugin it is in binary form and it is compressed in a jar file. The project to generate the Android plugin is contained inside the folder AndroidPlugin. To generate the plugin launch this command inside the AndroidPlugin folder:

ant jar

Then, copy the generated BleFrameworkPlugin.jar file inside the Unity/Assets/Plugins/Android folder.

cp bin/BleFrameworkPlugin.jar ../Unity/Assets/Plugins/Android

Finally you can build the project in Unity for Android.

As regard iOS you can find the plugin source code inside the folder Unity/Assets/Plugins/iOS. In this case you don't need to create a binary. If you want to modify the plugin you can just modify the source code in this folder.

In Unity you can access the plugin by using the C# API contained inside the BLE folder. In particular you can use the static functions defined inside BLEController.cs and you can register to the events defined in BLEControllerEventHandler.cs

ble-framework's People

Contributors

giomurru avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.