Code Monkey home page Code Monkey logo

Comments (4)

michael-angerer avatar michael-angerer commented on May 27, 2024

Hi,

I am glad you find my project useful!

Maybe your app is caching the old name?

You can set a device name programmatically using:
esp_ble_gap_set_device_name(const char *name);

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/bluetooth/esp_gap_ble.html#_CPPv427esp_ble_gap_set_device_namePKc

from esp32_ble_ota.

albrownwood avatar albrownwood commented on May 27, 2024

I am calling ble_svc_gap_device_name_set() as you do in your project since the ble stack is Nimble. The api you mention seems to be the one for the bluedroid stack which does not seem available when NimBLE is selected in menuconfig.

from esp32_ble_ota.

michael-angerer avatar michael-angerer commented on May 27, 2024

Right, my bad.

Did you check if it is a problem with your BLE scanner?

from esp32_ble_ota.

albrownwood avatar albrownwood commented on May 27, 2024

good catch, I installed a BLE scanner on another device and the correct name is displayed. So there is very likely some caching going on with my dev machine since I initially tested with "esp32" as name. I will need to figure out how to clean the BLE cache on that machine.
Thanks!

from esp32_ble_ota.

Related Issues (6)

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.