Search wiring.org.co:

Librerías \ Password

Referencia para la versión de Wiring 1.0 Build 0100+. Si tiene una versión previa, use la referencia incluida con su software. Si encuentra errores o tiene comentarios, no dude en contactarnos.

Nombre |

### Password

Ejemplos |
    #include <Password.h>

    Password password = Password( "1234" );

    void setup(){
      Serial.begin(9600);

      password.append('1');   //add 1 to the guessed password
      password.append('2');   //add 2 to the guessed password
      password << '3' << '4'; //add 3 and 4 to the guessed password
      //should print true, since 1234 == 1234
      Serial.println( password.evaluate() ? "true":"false" );

      password.reset(); //reset the guessed password to NULL
      //should print false, since 1234 != NULL
      Serial.println( password.evaluate() ? "true":"false" );

      password.set("qwerty"); //set target password to qwerty
      //should print true, since qwerty == qwerty
      Serial.println( password.is("qwerty") ? "true":"false" );
      //should print false, since qwerty != qwirty
      Serial.println( password == "qwirty" ? "true":"false" );
    }

    void loop(){/*nothing to loop*/}
Descripción | Inicializa el Password.
Sintaxis |
    Password(pass)
Métodos |

set() |
is() |
append() |
reset() |
evaluate() |

Parámetros |

pass | char*: El password inicial.

Retorna | Ninguno
Uso | Application

Updated on July 07, 2011 11:16:02pm PDT