Code done for mbed to send command AT to the bluetooth.