8 years, 5 months ago.

ble.gap().setDeviceName doesn't work

Hi

I'm trying to set the device name using the above API in the iBeacon example. It doesn't seem to work. Anyone know why?

I also tried using ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME,

and that didn't seem to work either.

Question relating to:

Bluetooth Low Energy (a.k.a Bluetooth LE, BTLE, Bluetooth Smart)

1 Answer

8 years, 5 months ago.

Please refer to the HeartRate demo for an example use which works successfully: https://developer.mbed.org/teams/Bluetooth-Low-Energy/code/BLE_HeartRate/file/469dbde1a238/main.cpp