Git Product home page Git Product logo

didourebai / bleplugindemo Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 17.0 48.92 MB

We present in this presentation Xamarin.Forms app, that is a basic bluetooth LE scanner. in out demonstration we will be able to: - Check the ble status. - Discover devices. - Connect. - Discover the services. - Discover the characteristics. - See characteristic details. - Read/write and register for notifications of a characteristic.

C# 0.19% Java 99.81%

bleplugindemo's Introduction

๐Ÿ’ซ About Me:

I'm ad Senior Advisor, Information and Solution Integration Architect, Microsoft MVP Developer Technologies, MCT, Speaker, and Book author.

๐ŸŒ Socials:

LinkedIn Medium Twitter YouTube

๐Ÿ’ป Tech Stack:

C# CSS3 JavaScript HTML5 Go Python Azure AWS Oracle Angular.js Angular .Net Apache Nginx Apache Ant MongoDB MicrosoftSQLServer SQLite Redis Postgres MySQL

๐Ÿ“Š GitHub Stats:



๐Ÿฆ Latest Tweet


bleplugindemo's People

Contributors

didourebai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bleplugindemo's Issues

Cannot find device on Android

Hello!
The project will not work correctly on Android, without the bluetooth permissions that need to be added to MainActivity.cs in the Android project.

var locationPermissions = new[]
{
    Manifest.Permission.AccessCoarseLocation,
    Manifest.Permission.AccessFineLocation
};
    // check if the app has permission to access coarse location
    var coarseLocationPermissionGranted =
        ContextCompat.CheckSelfPermission(this, Manifest.Permission.AccessCoarseLocation);
    // check if the app has permission to access fine location
    var fineLocationPermissionGranted =
         ContextCompat.CheckSelfPermission(this, Manifest.Permission.AccessFineLocation);
     // if either is denied permission, request permission from the user
    const int locationPermissionsRequestCode = 1000;
    if (coarseLocationPermissionGranted == Permission.Denied ||
        fineLocationPermissionGranted == Permission.Denied)
    {
        ActivityCompat.RequestPermissions(this, locationPermissions,
        locationPermissionsRequestCode);
    }```

Failing to Connect to BLE devices

deviceList.Add(a.Device); this line is not adding nearer bluetooth devices, even though all my devices are turned on with bluetooth and location also..

Error GattCallback 133 when connected device

Hello,

I always got this error when i'm trying to connect the device since the first time.
ALready try stop scan before connect and use timeout also won't solved this problem.
Can you please help me how to solved this error?

Thx

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.