TinyCircuits Forum

TinyCircuits Products => TinyDuino Processors & TinyShields => Topic started by: Partinarel on April 24, 2016, 05:29:50 AM

Title: Configuring BLE
Post by: Partinarel on April 24, 2016, 05:29:50 AM
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
Title: Re: Configuring BLE
Post by: Ben Rose on April 26, 2016, 07:30:07 PM
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.
Title: Re: Configuring BLE
Post by: gmyu on April 17, 2017, 11:20:11 AM
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.