rsunicast/rsunicast.h
/**
 * Sets up the messaging and opens the channels. 
 * No messages can be received or sent until this function has been called!
 */
Sets up the messaging and opens the channels.
No messages can be received or sent until this function has been called!
Sets up the messaging and opens the channels . No messages can be received or sent until this function has been called!
void rsunicast_init()
{
	static uint8_t is_initialized = 0;
	if(is_initialized==0) {
		unicast_open(&rsu_data_channel, MESSAGING_PORT, &rsu_msg_callbacks);
		unicast_open(&rsu_ack_channel, ACKNOWLEDGEMENT_PORT, &rsu_ack_callbacks);
		rsu_is_online = 1;
		is_initialized = 1;
	}
}
void rsunicast_init ( ) { static uint8_t is_initialized = 0 ; if ( is_initialized == 0 ) { unicast_open ( & rsu_data_channel , MESSAGING_PORT , & rsu_msg_callbacks ) ; unicast_open ( & rsu_ack_channel , ACKNOWLEDGEMENT_PORT , & rsu_ack_callbacks ) ; rsu_is_online = 1 ; is_initialized = 1 ; } }
Sets up the messaging and opens the channels.
Sets up the messaging and opens the channels .