Basically, I don't understand what a bluetooth UUID denotes. Do UUIDs denote protocols (e.g. RFCOMM)? If so, why do the
UUID muuid = device.getUuids().getUuid();
It usually represents some common service (protocol) that bluetooth device supports.
When creating your own rfcomm server (with
listenUsingRfcommWithServiceRecord), you should specify your own UUID so that the clients connecting to it could identify it;
it is one of the reasons why
createRfcommSocketToServiceRecord requires an UUID parameter.
Otherwise, some common services have the same UUID, just find one you need and use it.