Giter Site home page Giter Site logo

android_ble's Introduction

Multiple BLE Device Connection

This test app demonstrate how to connect and communicate android app with multiple BLE devices using BluetoothLeGatt interface.

Prerequisites

1.Android Device with android 4.4.2 and above 2.Bluetooth Low Energy Device which can work in Peripheral Module.

Installation

1.Import project in Android Studio. 2.Please verify that application have BLUETOOTH and BLUETOOTH_ADMIN permission in menifest file.

If Android Device has Marshmallow or above version then add extra permissions of LOCATION and GPS.

Currently this app supports connection with 2 BLE devices but we can add connection upto 4-7 devices (most device support 4 connection at a time) by implementing BluetoothLeGatt callback method. Each callback method stands for one BLE connection.

Please modify class BluetoothLeSevice to add more BLE devices connection.

android_ble's People

Contributors

alpesh-prompt avatar kalpan-prompt avatar

Stargazers

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

Watchers

 avatar

android_ble's Issues

MULTI BLE CONNECT NOT WORKING...

Hi,
nice to meet you.

I want to learn multi connect ble.

First, i don't working this project.
So, i add " mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); "in connectForConfiguration function on BluetoothLeService.java

it was working connect ble 1
but it is not working to multi connect ble..

Also on MainActivity.java, btnConnectBLE button does not exist any source code

Connection not happening to device

Hi I have compiled the source code ,
Scanning is happening.
But connection to a single device also is not happening.
Please guide me on resolving this issue
screenshot_20181130-214920

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.