Giter Site home page Giter Site logo

esp32bleadvertise's Introduction

ESP32BleAdvertise

Simple library of a BLE advertise using ESP32 in Arduino. Notice that this a very recent work and still under tests.

Usage

void setup() {
    ble.begin("ESP32-BLE");  //sets the device name
}

void loop() {
    String str = String(random(0, 1000));
    ble.advertise(str);   // advertises a random number
    delay(1000);
}

Downloading and Installing

Click on the green button "Clone or download" and download as a zip file. In Arduino Studio, click in Sketch > Include Library > Add .ZIP Library and select the file you've just downloaded.

Debugging and visualizing data

Check out this Android app, works very well for debugging this application: https://play.google.com/store/apps/details?id=uk.co.alt236.btlescan&hl=en You will see the advertise data at "Manufacturer Specific Data".

Tips

Be aware of the limitations of the BLE broadcast in terms of the message size. Your advertise data should not be bigger than 8 bytes and the name of the device should not be bigger than 20 bytes.

TODOs

  • Being able to change the UUID
  • Advertise more than 8 bytes

esp32bleadvertise's People

Contributors

lucascoelhof avatar

Watchers

Teruhito Yoneyama 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.