BLE Rename Device


Is it possible to change the name of the Duo as a BLE peripheral dynamically?

If so, would I change the advertising data or the scan response data or both?

Can I then just stop advertising and then start advertising again or is it better to restart the Duo completely?


Try this one:
ble.setDeviceName((const uint8_t *)“hello world”);