This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Change the peripheral name over air through iPhone

I have BLE Shield V2.0 and i want to change the device name from the iPhone. We can use nRFGO Studio to change the name from GAP Settings but this is only one time change. Now i want user can change the connected peripheral(like BLE Shield) name at any number number of times according to wish. How can i do this?

Steps i followed to change the name from iPhone: In nRFGO Studio in GAP Settings i have checked change name over air which is the first step. Then i have successfully received a string from iPhone to mcu which i have interfaced to nRF8001. Now i want this string which i have received from iPhone to be set as device name, for this i i have called a function: lib_aci_set_local_data(&aci_state, PIPE_GAP_DEVICE_NAME_SET , (uint8_t *)&device_name , strlen(device_name));

in device_name variable is the received string stored.

But it is not working,i hope you understand what i want to do just change the device name from iPhone.

Thanks

Related