mlst_network-ea1.h
/**
 * Initializes the MLST. Has to be called once in the beginning. You can also call it multiple times without harm but at least
 * once before you use it. The is no receiving or sending or anything else otherwise.
 */
Initializes the MLST. Has to be called once in the beginning. You can also call it multiple times without harm but at least
once before you use it. The is no receiving or sending or anything else otherwise.
Initializes the MLST . Has to be called once in the beginning . You can also call it multiple times without harm but at least once before you use it . The is no receiving or sending or anything else otherwise .
void mlst_init(){
	static uint8_t is_initialized = 0;
	if(is_initialized == 0){
		own_mlst_public_variable.energy_state = 0;
		pvn_init(&mlst_pvn, MLST_PVN_PORT, &own_mlst_public_variable, sizeof(struct mlst_public_variable), MAX_AGE_OF_MLST_NBR_IN_SECONDS);
		pvn_set_comparison_function(&mlst_pvn, pvnCmp);
		pvn_setCallbacks(&mlst_pvn, mlst_pvn_callbacks);
		is_initialized = 1;
		rsunicast_init();
		process_start(&mlst_process,0);
	}
}
void mlst_init ( ) { static uint8_t is_initialized = 0 ; if ( is_initialized == 0 ) { own_mlst_public_variable . energy_state = 0 ; pvn_init ( & mlst_pvn , MLST_PVN_PORT , & own_mlst_public_variable , sizeof ( struct mlst_public_variable ) , MAX_AGE_OF_MLST_NBR_IN_SECONDS ) ; pvn_set_comparison_function ( & mlst_pvn , pvnCmp ) ; pvn_setCallbacks ( & mlst_pvn , mlst_pvn_callbacks ) ; is_initialized = 1 ; rsunicast_init ( ) ; process_start ( & mlst_process , 0 ) ; } }
Initializes the MLST.
Initializes the MLST .
//init pvn //start process