Git Product home page Git Product logo

recreate's Introduction

Recreate Bluetooth

Bluetooth Device

C# Scripts

  • Scripts to concern yourself with are in (/Unity/Hololens BLE Comms/Assets\HololensBLE/Scripts)
  • UnityBLEManager is the script used to interface with unity. Currently this has 3 UnityEngine.UI.Button used to test the functionality
  • UWPBLEManager is the script with references to the UWP framework

How To Use

  • Subscribe to the appropriate update method then call the correct static methods in the GattDevice Class. These will asynchronously perform tasks for you
  • As of 25/06/17 the most effective way of retrieving devices is to connect the device using the Windows 10 settings menu, then retrieve the device either by name or by using a UUID of one of the devices services. The other options have long wait times and a BluetoothLEDevice object cannot always be attained.
  • GattDevice classes should not be instansiated but rather retrieved as described above
  • Once an instance of the GattDevice class has been obtained, its services and characteristics can be accessed, which have the wrapper classes GattService and GattCharacteristic
  • Note that the GattCharacteristic class shares the same name as the Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic class. In the code the namespace of the latter is used to differenciate
  • The native GattCharacteristic object can be obtained and an event handler can be attached to recieve updates, or the characteristic value can be read/written

Outputs

A folder containing printouts from the debug log demonstrating this functionality will be provided shortly

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.