HeartbeatFg is illustrating how BLE characteristics can be monitored in foreground, the HeartbeatBg shows the same in background.
BluetoothApp shows how to create Bluetooth Serial communications between two apps with uniguew UID & service name advertisement.