Using BLE with 1.3. How to set the local name of the device to show in the advertising packet

OK, so that’s pretty simple.

So to confirm, I do need to add the UUID changing the BLE Local Name?

The required code to get both the Serial UART UUID + The custom Local Name to broadcast together is below?

void setup() {
    Serial.begin(115200);

    BleAdvertisingData data;
    data.appendServiceUUID(bleSerial.getServiceUuid());
    data.appendLocalName("Test");
    BLE.advertise(&data);
}