Adding Light on/off

Nov 29, 2009 at 10:39 AM

Hi, here its the snippet to adding ligth.s on or off:

  /// <summary>
        /// NO ROVIO API or MCU
        /// </summary>
        /// <returns></returns>

        public string Ligth(int on1off0)
        {
            //ojo la respuesta por parte del servidor de rovio
            //aunque le envies algo diferente a 0 o 1
            //es siempre 0 !!!!!!BUG en firmware????
         //   if (on1off0 == 1) //Consola.WriteLine("Encendiendo Luz de Rovio\r\n");
         //   if (on1off0 == 0) //Consola.WriteLine("Apagando Luz de Rovio\r\n");
            return rwc.Request("rev.cgi?Cmd=nav&action=19&LIGHT=" + on1off0.ToString()); 
        }
Apr 22, 2010 at 12:10 AM

Thx, added to the library code, will add credits in code comments