3rd revision of my mbedOs ble weight program