public RequestEventArgs(Request command, Socket connection, NetDuinoUtils.Utils.HelperClass.ReturnType returntype)
 {
     Command = command.ReqEndPoint;
     Connection = connection;
     Connection.SendTimeout = 5000;
     ReturnType = returntype;
 }
Exemple #2
0
        public static void Main()
        {
            LcdWriter.Instance.Write("ready!");
            Thread.Sleep(500);
            // write your code here
            motorControl = new ServoControl(Pins.GPIO_PIN_D9);
            ButtonUtils.OnBoardButtonPushed(SpinMotor);

            NetDuinoUtils.KeepRunning();
        }
Exemple #3
0
        public static void Main()
        {
//            var idReader = new Id12Reader(SerialPorts.COM2, Pins.GPIO_PIN_D4);
//            idReader.RfidEvent += IDReaderRfidEvent;
//            idReader.Start();

            InitWifi();

            NetDuinoUtils.KeepRunning();
        }
Exemple #4
0
        public static void Main()
        {
            LcdWriter.Instance.Write("ready!");

            WebServerWrapper.InitializeWebEndPoints(new ArrayList
            {
                new BasicPage(),
                new CameraControl()
            });

            WebServerWrapper.StartWebServer();

            NetDuinoUtils.KeepRunning();
        }
Exemple #5
0
 public Request(EndPoint ep, NetDuinoUtils.Utils.HelperClass.ReturnType rt)
 {
     ReqEndPoint = ep;
     ReqReturnType = rt;
 }