The Temperature Logger 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 APP_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 Temperature Logger demo application are described by 'tlogger' app.spec. messages.
- It is also responsible for sending and receiving the data to the underlying physical communication channel (NFC interface).
◆ AppMsgInit()
void AppMsgInit |
( |
bool |
reuseKeys | ) |
|
Initializes the messaging part of the application; initializes the msg mod; Ensures an initial ndef message is loaded in the NFC shared memory.
- Parameters
-
reuseKeys | True when previously set keys - if any - are to be reused; false otherwise. |
◆ AppMsgHandleCommand()
void AppMsgHandleCommand |
( |
int |
cmdLength, |
|
|
const uint8_t * |
cmdData |
|
) |
| |
Wrapper round Msg_HandleCommand
- Precondition
- AppMsgInit must have been called beforehand
- Parameters
-
cmdLength | : The size in bytes in cmdData |
cmdData | : Pointer to the array containing the raw command bytes. |