fix for writing to BLE from android.