Middleware for the periphery client that handles bluetoothconnections as service