appendLocalName()
is not that different to appendServiceUUID()
which Rick has mentioned in his post
With appendLocalName()
you are not adding another service but the name.
However, you need to bundle the BLE UART UUID and the name into a "shared" set of advertising data and then advertise that bundle the standard BLE.advertise()
way.
That's where the curiosity to understand how it works beats just being conent with prefab solutions