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.

asciiman

Member Since 28 Aug 2013
Offline Last Active Apr 08 2016 06:11 PM
-----

Topics I've Started

Flash / Code Storage / RAM ..etc.

09 March 2015 - 02:52 PM

Hi

 

Netduino +2 has 1MB flash + 384Kb Code Storage and 192Kb RAM (tech spec)

 

Is 1MB flash  = 384Kb Code Storage + 192Kb RAM + ..etc. 

 

is Stringbuilder using ArrayList ?

07 March 2015 - 01:50 PM

Hi,

 

?s stringbuilder using Arraylist?

 

http://neuromancer.i...rk-collections/

 

One main point to consider when using collections in a micro framework device is that of memory consumption. Each collection carries overhead data that serves no other purpose than to facilitate the items you store in the collection. For example, inserting hundreds of items in an ArrayList will quickly use up most of the memory on a Netduino.


StreamReader vs FileStream

06 March 2015 - 09:39 AM

hi guys

 

i read this "StreamReader is a memory pig. Use FileStream directly." is this true. FileStream is light version of StreamReader.

 

thnx


WebAPI and Socket

21 February 2015 - 10:18 AM

hi guys

 

I can use  "Get or Post" method with simple socket connection. I can send any parameters via url to "Get or Post" method. But i cant use [formBody] property.

 

What is wrong?

            var xSocket = new System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp);
            var xEndPoint = new System.Net.IPEndPoint(System.Net.Dns.GetHostEntry("127.0.0.1").AddressList[0], 80);

            xSocket.Connect(xEndPoint);
            xSocket.SetSocketOption(System.Net.Sockets.SocketOptionLevel.Tcp, System.Net.Sockets.SocketOptionName.NoDelay, true);
            xSocket.SendTimeout = 1000;

            //byte[] xContent = System.Text.Encoding.UTF8.GetBytes("this is content");

            string xRequestLine = "Get /api/My/45 HTTP/1.1\r\n";

            string xHeaderLines =
                "Host: localhost" + "\r\n" +
                "Accept: text/json; charset=utf-8" + "\r\n" +
                "Accept-Encoding: gzip, deflate" + "\r\n" +
                //"Content-Type: application/json" + "\r\n" +
                //"Transfer-Encoding: chunked" + "\r\n" +
                "Connection: Close" + "\r\n" +
                //"Content-Length: " + xContent.Length.ToString() + "\r\n" +
                "\r\n";     // EmptyLine

            xSocket.Send(System.Text.Encoding.UTF8.GetBytes(xRequestLine));
            xSocket.Send(System.Text.Encoding.UTF8.GetBytes(xHeaderLines));
            //xSocket.Send(xContent);


Internet data transfer

13 January 2015 - 07:32 PM

Hi

I wanna send and receive image from internet.

Whic is the best way.

 

I try WCF service but it use xmlreader and xmlreader is not recommended for netduino?

 

 


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.