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

change ble device name

Hi,

I'm changing the peripheral device name by sending a command from the host over ble. I can see the changed device name after the host disconnects. Is it possible to see the changed device name without disconnecting?

  • Hello,

    I can see the changed device name after the host disconnects. Is it possible to see the changed device name without disconnecting?

    No, this is because it is only during advertising that the name is used, and once the devices enters into a connection they often will stop listening for / sending advertisements.
    So, even if the peripheral keeps advertising with its new name, it is not certain that the central will keep scanning for advertisements ( since it has already established a connection ), and also visa versa.

    When the connection is terminated the peripheral will start advertising again ( with the new name ), and the central will start scanning for new advertisements again - seeing the new device name immediately.

    Please let me know if anything still should be unclear!

    Best regards,
    Karl 

Related