Code Monkey home page Code Monkey logo

beckon-android's Introduction

Beckon

A safe, correct and pleasant Bluetooth Low Energy (BLE) library for Android with functional data types and reactive interface.

Introduction

This library aims to solve many of the pains that Android developers have to endure in their life when working with Android BLE.

By using functional programming approach and reactive interface, this library (will) provides:

Setup

You can get Beckon by using Jitpack.

    repositories {
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }

    // Beckon
    implementation "com.github.technocreatives.beckon-android:beckon:main-SNAPSHOT"

    // Beckon DFU
    implementation "com.github.technocreatives.beckon-android:beckon-dfu:main-SNAPSHOT"

    // Beckon Mesh
    implementation "com.github.technocreatives.beckon-android:mesh-data:main-SNAPSHOT"
    implementation "com.github.technocreatives.beckon-android:beckon-mesh:main-SNAPSHOT"

Compatibility

The library uses arrow, version 1.1.2, to provide well typed Either results for error handling. A basic understanding of how Arrow's work is essential.

Contributing

Any bug reports, feature requests, questions and pull requests are very welcome.

Modules & Features

Beckon

Basic BLE connection to devices

  • Scan
  • Connect/disconnect a device
  • Create/remove Bond
  • Save/remove (A new concept from Beckon)
  • Descriptor with requirements on a device

Beckon DFU

Wrapper around NordicSemiconductor/Android-DFU-Library

  • Sealed interface of results during the process of a DFU (Starting, EnablingBootloader, Uploading and Success/Aborted/Error)
  • Process to view current state and abort a DFU process

Beckon Mesh

  • Exposes mesh states for Loaded, Connected & Provisioning
  • Support multiple meshes
  • Observe changes to mesh configuration
  • Exposes sendMessage as suspend for Ack message
  • Typed Configuration messages
  • ProxyFilterMessage that types AccessPayload and OpCode (e.g Single, Double & Triple octet)

Mesh Data

Workflow

-> Create a new branch
-> Push a lot of commits
-> Create a new PR to master
-> Push a lot of commits
-> Do code review & discuss
-> make sure ci agrees with what you did
-> Rebase to master (if needed)
-> Squash into one commit (and write a beautiful commit message)
-> If team agrees then merge to master

Limitation

This library is not feature complete, feel free to make a PR if you wish to add functionality that is missing.

License

Licensed under either of these:

Contributing

Unless you explicitly state otherwise, any contribution you intentionally submit for inclusion in the work, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.

beckon-android's People

Contributors

ena-fly avatar lenguyenthanh avatar rawa avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

mmuir-ca icodein

beckon-android's Issues

Migrate CI

After moving this repo from gitlab to github we no longer have CI, we need to migrate it over.

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.