Bluetooth Low Energy Software Stack for Embedded Devices