void
LightLampApplication::
boot(void) {
    os().debug("ON");

    TOGGLE_LED(LED_BLUE);
    os().allow_doze(false);
    os().allow_sleep(false);


    os().radio().hardware_radio().set_channel(17);

    telos = new TelosbModule(os_);

    telos->init();
    telos->add_button_handler(this);


    os().dispatcher().add_receiver(this);



    //Create the command payload - off
    messclose[0] = 0x7f; //mksense
    messclose[1] = 0x69; //mksense
    messclose[2] = 105; //mksense

    //Create the command payload - on
    messopen[0] = 0x7f; //mksense
    messopen[1] = 0x69; //mksense
    messopen[2] = 105; //mksense

    //Create the command payload - switch
    messwitch[0] = 0x7f; //mksense
    messwitch[1] = 0x69; //mksense
    messwitch[2] = 105; //mksense

    for (int i = 3; i < 13; i++) {
        messopen[i] = 1; //on
        messclose[i] = 0; //off
        messwitch[i] = 99; //swithc
    }

    //create the echo payload
    echomsg[0] = 0x7f; //mksense
    echomsg[1] = 0x69; //mksense
    echomsg[2] = 100; //mksense
    echomsg[3] = 42; //echo payload

    //get the initial light value
    light = telos->light();

    //start periodic tasks
    os().add_task_in(Time(1, 0), this, NULL);
}