@BTSERVICEPORT[n] : Returns the port used by the Bluetooth service whose index is n. (Indexes range from 0 to _btdevicecount.)

 

Example:

 

echo %@btserviceport[0]