项目作者: lintmouse

项目描述 :
Microcontroller fun
高级语言: C#
项目地址: git://github.com/lintmouse/netduino-lab.git
创建时间: 2017-06-21T05:53:32Z
项目社区:https://github.com/lintmouse/netduino-lab

开源协议:MIT License

下载


Netduino Lab

This is a library that targets the .NET Micro Framework and includes a light-weight framework for interacting with your components. It wasn’t finished but has the following features:

  • Web server that supports standard HTTP methods and uses delegates to handle routing
  • Utility for setting device clock from an NTP server
  • Rolling file logger
  • MicroSD file system access
  • Ability to sync and manipulate collections of components
  • Pulsing behavior that can be dynamically applied to any digital component
  • Seven segment display that can be manipulated over the internet

To run the web server, check out the BasicWebServerSample in the repository, which is where the following snippet is from:

  1. using (var webServer = new WebServer(fileLogger))
  2. {
  3. webServer.AddRouteHandler(new RouteHandler(
  4. HttpMethod.Get, "test", program.handleTestRequest));
  5. webServer.Start();
  6. Thread.Sleep(webServerDuration);
  7. }

Note: this library was developed with the Netduino Plus 2 board.

httpatomoreillycomsourceoreillyimages9857142