From 36e6a472d380e6d1e95d56aa24ebe450425ea707 Mon Sep 17 00:00:00 2001 From: Donatien Garnier Date: Mon, 6 Aug 2018 10:42:36 +0100 Subject: [PATCH] add 'message' to NFCRemoteInitiator NDEF callbacks --- features/nfc/doc/nfc_design.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/features/nfc/doc/nfc_design.md b/features/nfc/doc/nfc_design.md index be38921528..c78079c3ad 100644 --- a/features/nfc/doc/nfc_design.md +++ b/features/nfc/doc/nfc_design.md @@ -256,11 +256,11 @@ virtual void on_selected(); virtual void on_deselected(); ``` -Some phones/readers 'park' a target and re-select it later - these events let the user know if the what state the local target is being put in. +Some phones/readers 'park' a target and re-select it later - these events let the user know what state the local target is being put in. ```cpp -virtual void on_before_ndef_read(); -virtual void on_after_ndef_write(); +virtual void on_before_ndef_message_read(); +virtual void on_after_ndef_message_write(); ``` When emulating a NFC tag, it can be useful to generate a NDEF message dynamically just before a read by the initiator. Conversly if the initiator updates the NDEF message, it can be processed immediately afterwards.