     digitalWrite(LED_PIN, HIGH);
     Serial.println(CONST_ID+":"+CONST_TYPE+":1");
 }
-
 // turn LED Off:
 void turnOff(){
     digitalWrite(LED_PIN, LOW);

            break;
        case EV_LONGPRESS:          // if long press
            //TODO : Faire clignoter la LED et attendre la fin d'une synchronisation.
            
            break;
    }

    delay(DELAY);
}

// ####### Function ########
int handle_button(){
    int event;
    int button_now_pressed = !digitalRead(BUTTON_PIN); // pin low -> pressed

    if (!button_now_pressed && button_was_pressed) {
        if (button_pressed_counter < LONGPRESS_LEN){
            event = EV_SHORTPRESS;
        }
        else{
            event = EV_LONGPRESS;
            Serial.println(CONST_ID+":"+CONST_TYPE+":4");
            
        }
    }
    else{
            event = EV_NONE;
    }

    if (button_now_pressed)
        ++button_pressed_counter;
    else 
        button_pressed_counter = 0; 
        
    button_was_pressed = button_now_pressed;
    return event;
}

    switch(eventResult){
        case EV_NONE:               // if nothing append
            //TODO : Ne rien faire de particulier, ou attendre la fin d'une synchronisation
            break;
        case EV_SHORTPRESS:         // if short press
            //TODO : Allumer ou éteindre la LED (a check)
