Configuring BLE

Partinarel

  • Newbie
  • *
    • Posts: 1
    • View Profile
Haven't been able to turn up any good results on google.
Is it possible to change the name that the Nordic Bluetooth Le device advertises?
It's getting hard to distinguish between all of the URT entries showing up :s


Ben Rose

  • Administrator
  • Hero Member
  • *****
    • Posts: 392
    • View Profile
Yes, you can use Nordic's nRFgo Studio to open the XML settings file in their UART example and change the name, then export the services.h file.

https://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRFgo-Studio
https://github.com/NordicSemiconductor/ble-sdk-arduino/tree/master/libraries/BLE/examples/ble_uart_project_template

Or you can try the https://github.com/sandeepmistry/arduino-BLEPeripheral BLEPeripheral library maintaned by Sandeep, which has a compatible 'serial' example and can easily change the advertising name, but may use more code space.


gmyu

  • Newbie
  • *
    • Posts: 3
    • View Profile
The uuid is defined in the
    void setConnectable(void)
in UART.ino. The default is something like
    const char local_name[] = {AD_TYPE_COMPLETE_LOCAL_NAME, 'B', 'l', 'u', 'e', 'N', 'R', 'G'};

You can easily modify the code to pass your own uuid variable there.


 

SMF spam blocked by CleanTalk