Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 2 months ago.
Changing the beacon name in Eddystone format
Hi,
I'm trying to change the beacon name but haven't succeeded till now. What I've tried are the following:
1. Used ble.setDeviceName to change the name in the main() funciton.
2. Added a parameter of deviceName to EddystoneService.h and use ble.setDeviceName there.
3. Removed the parameter deviceName from EddystoneService.h again, but called ble.setDeviceName there directly.
4.Used the following function too.
ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME,((uint8_t *)DEVICE_NAME), sizeof(DEVICE_NAME));
I am able to compile the code without error in all the cases.
Any suggestion on where I am going wrong? Thanks in advance for help :)