The Therapy Adherence Message Handler is responsible for handling the communication with the host (tag reader/smartphone).
- It makes use of:
- The supported command ID's are described by MSGHANDLER_MSG_ID_T enum
- The specifics of the protocol are described in the documentation section of the msg: Message Handler module
- The content of the commands and responses defined by the Therapy Adherence demo application are described by 'tadherence' app.spec. messages.
- It is also responsible for sending and receiving the data to the underlying physical communication channel (NFC interface).
◆ MsgHandler_Init()
void MsgHandler_Init |
( |
void |
| ) |
|
Makes sure the messaging mechanism is initialized. It also initializes the NFC tag with a getVersion response.
- Precondition
- NFC should be initialized
- Postcondition
- Ready to receive commands from NFC.
◆ MsgHandler_NFCCommunication()
void MsgHandler_NFCCommunication |
( |
void |
| ) |
|
Function performing NFC communication, this function is blocking until the host stops sending commands (host timeout).