Git Product home page Git Product logo

ble's Introduction

Package ble provides functions to discover, connect, pair, and communicate with Bluetooth Low Energy peripheral devices.

Documentation: https://godoc.org/github.com/ecc1/ble

This implementation uses the BlueZ D-Bus interface, rather than sockets. It is similar to https://github.com/adafruit/Adafruit_Python_BluefruitLE

The apps directory contains some simple example programs.

Some older Linux kernels, like the one on the Intel Edison, may not properly support the SetDiscoveryFilter method. The ble package can be built with the "nofilter" tag to work around this.

ble's People

Contributors

ecc1 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

Watchers

 avatar  avatar  avatar  avatar  avatar

ble's Issues

Provide Sample

Please provide sample to discover & connect and transfer data on Bluetooth.

issue in discovery

i have 2-3 sensorTags when i am initiating the discovery process i am getting :-
2017/06/15 02:29:30 saurabhpi: starting discovery
2017/06/15 02:31:38 saurabhpi: discovered PSSENSBANKB
2017/06/15 02:31:38 saurabhpi: stopping discovery
2017/06/15 02:31:38 found 2 instances of interface org.bluez.Device1
exit status 1
i am using the sample code for discovery from cmd directory.

Devices not getting Discover

Trying to discover the device with 0 or 60 seconds timeout but device is not getting discover. In addition, timeout 0 does not return. Please advise to fix the issue
Please Note : Getting UUID's through bluetoothctl.

2018/01/11 16:25:10 JC-VirtualBox: setting discovery filter [00001800-0000-1000-8000-00805f9b34fb 00001801-0000-1000-8000-00805f9b34fb 6e400001-b5a3-f393-e0a9-e50e24dcca9e]
2018/01/11 16:25:10 JC-VirtualBox: starting discovery
2018/01/11 16:26:10 JC-VirtualBox: stopping discovery
2018/01/11 16:27:03 discovery timeout [00001800-0000-1000-8000-00805f9b34fb 00001801-0000-1000-8000-00805f9b34fb 6e400001-b5a3-f393-e0a9-e50e24dcca9e]```

The OS X support

Hi,

I tried some examples under cmd/ folder and got failed on my mac.
Just want to check is this package support OS X at the moment?
Or it only supports Linux distributions ?

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.