GithubHelp home page GithubHelp logo

giomurru / ble-framework Goto Github PK

View Code? Open in Web Editor NEW
81.0 81.0 22.0 1.38 MB

A Unity framework for using bluetooth low energy (BLE) ReadBearLab boards with iOS and Android mobile platforms.

License: MIT License

C# 36.84% HTML 0.33% Objective-C 16.73% C 1.08% Objective-C++ 6.83% Java 26.20% C++ 11.98%

ble-framework's People

Contributors

giomurru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ble-framework's Issues

bluetooth LE for android unity

Hello is this plugin works for Raspberry pi zero wirless?? i have to send and receive data between Raspberry and android using unity ! is this works for me?

How to send data from Unity to Android (via BLE)

Everything works, i.e., I can connect the phone (running your code in Unity, on an android) and my arduino which has a BT LE module. (I see the blue LED that signifies the connection worked).

However, the function _SendData, crashes in runtime with:
07-10 18:38:28.493 4294-4318/? I/Unity: AndroidJavaException: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothGattCharacteristic.setValue(byte[])' on a null object reference java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothGattCharacteristic.setValue(byte[])' on a null object reference at com.gmurru.bleframework.BleFramework._SendData(BleFramework.java:605) at com.unity3d.player.UnityPlayer.nativeRender(Native Method) at com.unity3d.player.UnityPlayer.a(Unknown Source) at com.unity3d.player.UnityPlayer$b.run(Unknown Source) at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <filename unknown>:0 at UnityEngine.AndroidJNISafe.CallVoidMethod (IntPtr obj, IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in <filename unknown>:0 at UnityEngine.AndroidJavaObject._Call (System.String methodName, System.Object[] args) [0x00000] in <filename unknown>:0 at UnityEngine.AndroidJavaObject.Call (System.String methodName, System.O

Is this the proper way to send a few bytes through the BT connection? Do I have to initialize a service first? (I do that in my Android Studio app, was trying to replicate in Unity)

No device found on iPhone 6s with iOS 11

Below is the debug log from xcode:

2017-11-15 17:40:25.507969+0800 bleframework[5308:518616] scanForPeripheralsWithServices
2017-11-15 17:40:27.508815+0800 bleframework[5308:518616] Stopped Scanning
2017-11-15 17:40:27.508880+0800 bleframework[5308:518616] Known peripherals : 0
2017-11-15 17:40:27.509323+0800 bleframework[5308:518616] List of currently known peripherals :
2017-11-15 17:40:27.509351+0800 bleframework[5308:518616] No peripherals found
AppControllerBehavior: HandleOnBleDidCompletePeripheralScanErrorEvent: Error scanning for BLE peripherals: Fail: No device found
BLEFramework.Unity.BLEControllerEventHandler:OnBleDidCompletePeripheralScan(String)

Select Characteristic to write to

Hi, I wanted to use this asset in my application to be made in unity. Can I select which services/characteristic I want to write to?

If yes, then how?

If no, then please suggest some solutions?!

TIA

Unable to run copyPlugin

Importing to latest version of Android Studio doesn't permit Run of copyPlugin.
"You can open this project using Android Studio, then click on Run 'copyPlugin' to generate and copy the plugin in the BleFramework/Assets/Plugin/Android folder."

Is there a way to manually perform the task?

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.