Webserver

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #5167
    Author Image
    Jacek S
    Participant

    Hi Again,

    Most of the time it takes 134 ms but every 5-10 sec I have the situation from the screen shoot.
    This is all:

    
        public class JoyPos
        {
            public float X { get; set; }
            public float Y { get; set; }
        }
    
        public class TruckInfo
        {
            public int Speed { get; set; }
            public float WheelPos { get; set; }
        }
    
        public class TruckModule : NancyModule
        {
    
            //Motor motor = new Motor(MotorPort.OutA);
    
            public TruckModule() : base("/truck")
            {
                Get["/info"] = x => Response.AsJson(Info);
    
                Post["/joypos"] = x => 
                {
                    return "";
                };
            }
    
            public TruckInfo Info
            {
                get { return new TruckInfo() {Speed = 10}; }
            }
        }
    

    On HttpListener I have latency ~50ms (I seen max 120ms) and the startup time about 5sec

    Jacek

    #5177
    Author Image
    Tcm0
    Participant

    I get the following error when trying to build MonoBrickWebServer: “Could not find type ‘System.Globalization.SortVersion’.”
    Any ideas? I think that it’s because Windows only has MONO 3.2.3 so far.
    But it can be built with .NET.

Viewing 2 posts - 16 through 17 (of 17 total)

You must be logged in to reply to this topic.

Posted in

Make a donation