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.

Lyra's Content

There have been 2 items by Lyra (Search limited from 27-September 23)


By content type

See this member's

Sort by                Order  

#29917 LCD i2c LCD Display + Netduino

Posted by Lyra on 29 May 2012 - 08:56 AM in General Discussion

Hi, i've just received my Netduino Plus and ordered some parts in ebay, including this LCD Module from SainSmart: http://www.sainsmart...no-mega-r3.html There is a Arduino Library attached and i have no idea, how to use this display. Could someone point me to the right direction, how i could figure out, how i can use it. I've wired it up to A4 & A5 and +5V und GND. The backlight works, but nothing else. Greetings from Germany



#28943 First chance Socket Exception on socket.Accept()

Posted by Lyra on 13 May 2012 - 12:32 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi i have the exactly same Problem!

Here is my code:

      this.Port = port; // is 80
      this.socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
      this.socket.Bind(((EndPoint)(new IPEndPoint(IPAddress.Any, this.Port))));
      this.socket.Listen(0);

      while (true)
      {
        Socket client = this.socket.Accept();
        using (NetworkStream stream = new NetworkStream(client, true))
        {
          byte[] buffer = new byte[1024];
          stream.Read(buffer, 0, 1024);
          WebserverRequest request = new WebserverRequest(Encoding.UTF8.GetChars(buffer).ParseString());

          WebserverResponse response = new WebserverResponse(stream);

          WebserverContext context = new WebserverContext(this, request, response);

          if (this.OnContextReceived != null)
          {
            (new Thread(
              start:
              delegate()
              {
                this.OnContextReceived(this, context);
              }
            )).Start();
          }
          
          string http = String.Concat(responseHeader, "\r\n\r\n", content);

          byte[] outBuffer = Encoding.UTF8.GetBytes(http);

          stream.Write(outBuffer, 0, outBuffer.Length);*/
        }
      }

sometime it works, and with no hardware changes, it wont work. seems very strange.

Thanks,

Tom




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.