<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MQX Software Solutionsのトピックproblem with data stortage in the MFS</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/problem-with-data-stortage-in-the-MFS/m-p/405163#M13572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I want to save some data(Integer data and float data) to SD card using MFS, but the example program (write(fd,buffer,strlen(buffer));) can only save string data, I want to know how to &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;using the write command to save a variable data in the form of decimal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2015 13:06:45 GMT</pubDate>
    <dc:creator>botaoyang</dc:creator>
    <dc:date>2015-05-06T13:06:45Z</dc:date>
    <item>
      <title>problem with data stortage in the MFS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/problem-with-data-stortage-in-the-MFS/m-p/405163#M13572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I want to save some data(Integer data and float data) to SD card using MFS, but the example program (write(fd,buffer,strlen(buffer));) can only save string data, I want to know how to &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;using the write command to save a variable data in the form of decimal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 13:06:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/problem-with-data-stortage-in-the-MFS/m-p/405163#M13572</guid>
      <dc:creator>botaoyang</dc:creator>
      <dc:date>2015-05-06T13:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem with data stortage in the MFS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/problem-with-data-stortage-in-the-MFS/m-p/405164#M13573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Botao,&lt;/P&gt;&lt;P&gt;It depends in which format you want to store these data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want that data could be readable in different system (like PC). You should probably use string form. In this case for example sprinf() function.&lt;/P&gt;&lt;P&gt;sprintf(buffer, "Value of Pi = %f", pi_number);&lt;/P&gt;&lt;P&gt;write(fd,buffer,strlen(buffer));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want store numbers directly you can try using for example such case:&lt;/P&gt;&lt;P&gt;uint32_t&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usr_data[10];&lt;/P&gt;&lt;P&gt;len = write(flash_file, usr_data, sizeof(usr_data));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:15:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/problem-with-data-stortage-in-the-MFS/m-p/405164#M13573</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-05-07T14:15:38Z</dc:date>
    </item>
  </channel>
</rss>

