MessageParser
The MessageParser class is an event-driven NDEF message parser. This class parses a buffer of data in input and produces parsing events. It then forwards these parsing events to its delegate.
MessageParser class reference
Data Structures | |
struct | Delegate |
Report parsing event to the application. More... |
Public Types |
Public Member Functions | |
MessageParser () | |
Construct a message parser. More... | |
void | set_delegate (Delegate *delegate) |
Set the handler that processes parsing events. More... | |
void | parse (const Span< const uint8_t > &data_buffer) |
Parse an NDEF Message. More... |
MessageParser example
void set_delegate(Delegate *delegate);
void parse(const Span<const uint8_t> &data_buffer);
Related content
- SimpleMessageParser API reference.
- MessageBuilder API reference.
- NFC architecture.