How does NETMF/Netduino handle embedded resources - General Discussion - Netduino Forums
   
Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

How does NETMF/Netduino handle embedded resources

netmf Embedded Resources

  • Please log in to reply
1 reply to this topic

#1 OZ8ET

OZ8ET

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts
  • LocationHundested, Denmark

Posted 16 March 2013 - 05:46 AM

I have a file as an embedded resource (resource -id: myfile) which is quite large.

 

I want to send this file from a function like this:

 

sendString(Resources.GetString(Resources.StringResources.myfile));  

My function “sendString” chops up the string and send it in smaller bites.  

The concept is tested with a smaller file and Works.

 

The question is:  

Will the resource string be send to my function as a string (in RAM) or as a reference to the resource string (in FLASH)?.  

If it is first copied to RAM, it will take all my RAM which is not good.  

I tried to use “ref string buf” in the function argument, but it does not seems to Work (with the embedded ressource file).  

Any ideas?

Sorry if this is a plain NETMF question, but it might also have somthing to do with the implementation in Netduino ???  

 

 



#2 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 16 March 2013 - 06:01 PM

another approach would be save the file to an eeprom (or a sd card ..), and than read it in chunks







Also tagged with one or more of these keywords: netmf, Embedded Resources

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.