Exporting serial data from Arduino in real time

Hello,

I have a couple questions in regard to using the Arduino Portenta as a peripheral to transmit data via bluetooth. I was looking at the tutorial linked below and I'm unsure about a couple of things.

First, I need clarification on the following two lines (the code I'm referencing can be found here: https://docs.arduino.cc/tutorials/portenta-h7/ble-connectivity/):

BLEService ledService("19b10000-e8f2-537e-4f6c-d104768a1214");

// Bluetooth® Low Energy LED Switch Characteristic - custom 128-bit UUID, read and writable by central
BLEByteCharacteristic switchCharacteristic("19b10000-e8f2-537e-4f6c-d104768a1214", BLERead | BLEWrite);

Do the strings in these two declared variables need to be the same? Can they be any combination of letters and numbers in that format? Are they each for two different types of Bluetooth connections (Bluetooth and Bluetooth Low Energy)? Do they both need to be declared?

Second, I'm sending data in JSON format. What function in the ArduinoBLE library sends the data via Bluetooth?

Any information would be greatly appreciated. Thank you.