Git Product home page Git Product logo

nimble-arduino's Introduction

Latest release Release Version Release Date

Need help? Have questions or suggestions? Join the Gitter

NimBLE-Arduino

A fork of the NimBLE stack refactored for compilation in the Arduino IDE.

As of release 1.4.0 Nordic Semiconductor nRF51 and nRF52 series devices are now supported

Supported MCU's

  • Espressif: ESP32, ESP32C3, ESP32S3
  • Nordic: nRF51, nRF52 series (Requires using n-able arduino core)

Note for ESP-IDF users: This repo will not compile correctly in ESP-IDF. An ESP-IDF component version of this library can be found here.

This library significantly reduces resource usage and improves performance for ESP32 BLE applications as compared with the bluedroid based library. The goal is to maintain, as much as reasonable, compatibility with the original library but refactored to use the NimBLE stack. In addition, this library will be more actively developed and maintained to provide improved capabilities and stability over the original.

For Nordic devices, this library provides access to a completely open source and configurable BLE stack. No softdevice to work around, allowing for full debugging and resource management, continuous updates, with a cross platform API.

Arduino installation

Arduino Library manager: Go to sketch -> Include Library -> Manage Libraries, search for NimBLE and install.

Alternatively: Download as .zip and extract to Arduino/libraries folder, or in Arduino IDE from Sketch menu -> Include library -> Add .Zip library.

#include "NimBLEDevice.h" at the beginning of your sketch.

Platformio installation

  • Open platformio.ini, a project configuration file located in the root of PlatformIO project.
  • Add the following line to the lib_deps option of [env:] section:
h2zero/NimBLE-Arduino@^1.4.0
  • Build a project, PlatformIO will automatically install dependencies.

Using

This library is intended to be compatible with the original ESP32 BLE functions and types with minor changes.

If you have not used the original Bluedroid library please refer to the New user guide.

If you are familiar with the original library, see: The migration guide for details about breaking changes and migration.

Also see Improvements_and_updates for information about non-breaking changes.

Full API documentation and class list can be found here.

For added performance and optimizations see Usage tips.

Check the Refactored_original_examples in the examples folder for highlights of the differences with the original library.

More advanced examples highlighting many available features are in examples/ NimBLE_Server, NimBLE_Client.

Beacon examples provided by @beegee-tokyo are in examples/ BLE_Beacon_Scanner, BLE_EddystoneTLM_Beacon, BLE_EddystoneURL_Beacon.

Change the settings in the src/nimconfig.h file to customize NimBLE to your project, such as increasing max connections, default is 3, absolute maximum connections is 9.

Development Status

This Library is tracking the esp-nimble repo, nimble-1.4.0-idf branch, currently @3df0d20.

Also tracking the NimBLE related changes in ESP-IDF, master branch, currently @95db4bb.

Acknowledgments


nimble-arduino's People

Contributors

0xxon avatar asukiaaa avatar bascy avatar beegee-tokyo avatar boozer2 avatar btsimonh avatar corneliusmunz avatar davidjrobertson avatar deepak4395 avatar doudar avatar fabdelgado avatar gkoh avatar h2zero avatar huming2207 avatar j4m3s avatar jason2866 avatar ketan avatar lknop avatar lultimouomo avatar mblasee avatar mr-mime avatar scoutzknifez avatar spleen1981 avatar staars avatar thorrak avatar tobozo avatar wakwak-koba avatar

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.