// GET api/getcommands public CommandContainer Get() { CommandContainer c1On = new CommandContainer(); c1On.Commands.Add(new NeduinoCommand() { Name = "on", Value = "1" }); return c1On; }
// GET api/getcommands public CommandContainer Get() { CommandContainer c1On = new CommandContainer(); NetduinoCommand command; if (MvcApplication.CommandQueue.TryDequeue(out command)) { c1On.Commands.Add(command); } return c1On; }