Updated API with write of NDEF messages