I want to use fstorage to write data to a file. The File with three records: 0x1111="Tablet1", 0x2222="data: abcdef", 0x3333="26". How to implement it? Can anyone guide me?
I want to use fstorage to write data to a file. The File with three records: 0x1111="Tablet1", 0x2222="data: abcdef", 0x3333="26". How to implement it? Can anyone guide me?
I think you might want to use the 'fds' library for that. Have a look here: infocenter.nordicsemi.com/index.jsp
You are printing it as a hex number instead of a string. If your string is null terminated, simply use %s in NRF_LOG_PRINT().
Something like this:
char * p_data; p_data = flash_record.p_data; NRF_LOG_PRINTF("Data: %s\r\n", (uint32_t)p_data);
You are printing it as a hex number instead of a string. If your string is null terminated, simply use %s in NRF_LOG_PRINT().
Something like this:
char * p_data; p_data = flash_record.p_data; NRF_LOG_PRINTF("Data: %s\r\n", (uint32_t)p_data);