Bluetooth Bluez binding in Crystal
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
spec don't test non-working code yet Oct 11, 2018
src working on adding BLE scanning, right now socket get stuck at read part Mar 12, 2018
.editorconfig skeleton Feb 26, 2018
.gitignore skeleton Feb 26, 2018
.travis.yml skeleton Feb 26, 2018
LICENSE skeleton Feb 26, 2018
README.md Update README.md Oct 8, 2018
shard.yml skeleton Feb 26, 2018

README.md

bluetooth

This project is a WIP

Bluez C binding in Crystal

Installation

Add this to your application's shard.yml:

dependencies:
  bluetooth:
    github: crystal-community/bluetooth

Usage

require "bluetooth"
local_device = Bluetooth::LocalDevice.new
remote_devices = local_device.scan
local_device.close

# remote_devices is a Hash(String, String) of address => name
p remote_devices
=> {
  "00:11:22:33:FF:EE" => "Android Phone"
}

Development

Some relevant resources:

Contributing

  1. Fork it ( https://github.com/crystal-community/bluetooth/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • bararchy Bar Hofesh - creator, maintainer