public ActionResult Led()
        {
            DeviceLedVM vm = new DeviceLedVM();

            vm.Green = "000";
            vm.Red   = "000";
            vm.Blue  = "000";
            return(View(vm));
        }
 public ActionResult Led(DeviceLedVM vm)
 {
     /*
      * MQTTConnection conn = new MQTTConnection(MQTTServer.MQTT_HOST, MQTTServer.MQTT_PORT, MQTTServer.MQTT_USER, MQTTServer.MQTT_PASS);
      * conn.Connect();
      * var msg = vm.Red + "|" + vm.Green + "|" + vm.Blue;
      * conn.Publish("sensor/rgb", msg);
      */
     return(View(vm));
 }