Fredde - Viewing Profile: Likes - 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.

Fredde

Member Since 08 Dec 2011
Offline Last Active Dec 19 2015 03:19 PM
-----

#62211 Will you release any build on NETMF 4.4?

Posted by Fredde on 21 April 2015 - 04:12 PM

Is there any plan or schedule for a NETMF 4.4 release?

A faster single stepping and Watch update will make it a million times more fun to work with the Netduino.

"In addition, there are improvements in the debugging and deployment functionality and stability. For example, single stepping and updating the Watch window now takes a fraction of the previous time."

http://blogs.msdn.co...-on-github.aspx




#61053 MVC web framework like web server experience on Netduino

Posted by Fredde on 23 December 2014 - 02:36 PM

I would like to share a project i have been working with for a long time, it gives you a MVC like developer experience on Netduino.

 

To initialize the server:

public class Program
{
    public static void Main()
    {
        var webServer = new WebServer();
        webServer.Start(80);
    }
}

To create your first controller:

public class MyFirstController : Controller
{
    public void Index()
    {
        SetHtmlResult("<!DOCTYPE html><html><body><h1>My page</h1></html>");        
    }
}

Then run http://192.168.1.100/MyFirst or similar.

 

The main features is:

  • Controller/Action based web request routing with model binding and HTML or JSON response types built in.
  • It support both GET and POST http methods.
  • Exception handling with generic error response that includes exception message and stack trace.
  • It support static files via an optional assembly(to save code space if not needed).
  • Filters on request and response for things like logging, authentication and other things. 

It is built with Dependency injection and has some Unit tests.

 

For source code with running examples and some more decumentation see 

https://github.com/Rinsen/WebServer

 

 

And for long running scenarios i really recommend adding some kind of hardware based watch guard. 

 




#53865 Network in emulator on Windows 8.1

Posted by Fredde on 07 November 2013 - 08:50 PM

I have a problem with the emulator in combination with Windows 8.1.

 

I can´t make a connection to a socket when im running my application in Windows 8.1 but it starts as it should och gets the correct IP as is should but refuses to get any socket connections.

 

I also have tried to disable the firewall in the computer but that doesnt help and i have tried in another Windows 8.1 computer to.

 

The same application works well in Windows 7...

 

Is there some one who know how to fix this or is it a known bug in the emulator application?

 

Im running a 4.3 project.




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.