Bluetooth low energy protocol stack