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

Netduino and Xsockets.net Led blink example

Netduino Xsockets real time websockets

  • Please log in to reply
2 replies to this topic

#1 twinnaz

twinnaz

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationBrampton, Ontario

Posted 13 August 2014 - 02:45 AM

Just sharing an example of Xsockets.net running on Netduino Plus 2 , browser and console application with full duplex communication.

 

Controls the on-board LED from the browser also by pressing the on-board button, the netduino will send the chat message to the browser and the Console client application.

 

All files can be found here : https://github.com/X...ockets.Netduino

Lets see what we can create with the new Xsockets.Net 4.0 framework :)


  • uffe likes this

Netduino Plus 2


#2 twinnaz

twinnaz

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationBrampton, Ontario

Posted 14 August 2014 - 10:32 PM

anybody wants to try out the code and check if its working I can't seem to get it working on my computer


Netduino Plus 2


#3 uffe

uffe

    Member

  • Members
  • PipPip
  • 15 posts

Posted 15 August 2014 - 06:17 AM

Hi.

 

I have it running (but I wrote it so that may not count ;))

Anyway, happy to help out so that you can get up and running. I have tested with 4.2, but the 4.2 and 4.3 code is identical so I do not think that is the case. 

 

What happens if you debug? Do you get connected at all?

 

Add this class to the XSockets server project and you will se more logs

public class MyLogger : IDefaultLogger
{
    public ILogger Logger
    {
        get
        {
            return new LoggerConfiguration().MinimumLevel.Verbose()
                .WriteTo.ColoredConsole()
                .CreateLogger();
        }
    }
}






Also tagged with one or more of these keywords: Netduino, Xsockets, real time, websockets

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.