implemented BLE part and tested successfully.