Hello,
I'm working on a program that receives the temperature over TWI, saves the temperature in a string to flash memory, then adds this string to an NDEF message to be advertised. So far I'm able to get the temperature string and I've modified the ndef_file_load() function to correctly find and open this temperature string, which I've verified. However, when I try to read the NDEF message using an NFC tools app nothing appears.
I read the custom messages NFC page (http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.1.0/nrf/include/nfc/ndef/nfc_ndef.html) and it seems that the nfc_ndef_msg_encode() function needs to be used, then that encoded message needs to be added a buffer to be sent over NFC. Is this correct?
Where does the ndef_file_load() function encode the message? From what I can see the function just opens and reads the file from flash memory then closes the file. Also how do I add an encoded file to the buffer to be sent over NFC?
Thanks!