Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: M24SR NDefLib mbed
WriteUriCallbacks Class Reference
Chain of callback that will crate a Uri record and write it. More...
#include <WriteUriCallbacks.h>
Public Member Functions | |
| WriteUriCallbacks (DigitalOut &onOpenSession, DigitalOut &onWrite, DigitalOut &onCloseSession) | |
| create the callback chain | |
| virtual void | on_session_open (NDefLib::NDefNfcTag *tag, bool success) |
| crate the new message and write it | |
| virtual void | on_message_write (NDefLib::NDefNfcTag *tag, bool success) |
| request to close the session | |
| virtual void | on_session_close (NDefLib::NDefNfcTag *, bool success) |
| switch on the led | |
Detailed Description
Chain of callback that will crate a Uri record and write it.
After each operation the class will switch on a led
Definition at line 42 of file WriteUriCallbacks.h.
Constructor & Destructor Documentation
| WriteUriCallbacks | ( | DigitalOut & | onOpenSession, |
| DigitalOut & | onWrite, | ||
| DigitalOut & | onCloseSession | ||
| ) |
create the callback chain
- Parameters:
-
onOpenSession led to switch on when the session open onWrite led to switch on when the write end onCloseSession led to switch on when the session end
Definition at line 57 of file WriteUriCallbacks.h.
Member Function Documentation
| virtual void on_message_write | ( | NDefLib::NDefNfcTag * | tag, |
| bool | success | ||
| ) | [virtual] |
request to close the session
- Parameters:
-
tag tag where close the session success true if the message is correctly wrote message wrote
Definition at line 88 of file WriteUriCallbacks.h.
| virtual void on_session_close | ( | NDefLib::NDefNfcTag * | , |
| bool | success | ||
| ) | [virtual] |
switch on the led
- Parameters:
-
tag where the session is closed success true if the session is correctly close
Definition at line 107 of file WriteUriCallbacks.h.
| virtual void on_session_open | ( | NDefLib::NDefNfcTag * | tag, |
| bool | success | ||
| ) | [virtual] |
crate the new message and write it
- Parameters:
-
tag tag where write the message success true if the session correctly open
Definition at line 66 of file WriteUriCallbacks.h.
Generated on Mon Jul 18 2022 12:47:12 by
1.7.2