Coder Social home page Coder Social logo

bluezgattservice's Introduction

BluezGATTService

Expansion to make gatt-service.c useful from the bluez source code

Based from Bluez 5.45 gatt-service.c for BLE (Bluetooth Low Energy)

Basically after lots of time of searching for a solution in C code for BlueZ making a BLE service with a single characteristic, and to send and receive data. I found this.

It is already using the DBus for IPC to and from the Bluez to create a GATT Application, register itself, the service, a characteristic, and a descriptor all for use.

What works; Notify Read Write

What changed? I retooled it to allow sending/receiving data.

It can basically stand alone and run, and you interface with it via IPC shared memory from your own program.

Added; Posix threading A second thread that accepts commands

Why Fork? You want to remove the input and make it a daemon? You want to go more elegant than IPC shared memory.

How to build? Once you have Bluez 5.45 configured and building, you can then just insert this into the ./tools/ directory. I'm working on a patch to allow you to modify the Makefile.am, then run autogen.sh

Bluez 5.45 configure; ./configure --enable-library --enable-manpages --enable-deprecated --disable-obex --enable-experimental --enable-test --disable-silent-rules

bluezgattservice's People

Contributors

especialized avatar

Stargazers

 avatar Gábor Nagymajtényi avatar

Watchers

 avatar

Forkers

tornadoyun

bluezgattservice's Issues

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.