https://developer.mbed.org/teams/ST/code/NDefLib/#31f727872290