dodag version number and DIO message version number
musaosman78 opened this issue · 1 comments
musaosman78 commented
Hi all,
I want to compare the DODAG version number and the new arrival DIO version number how can i do that (the old version number and the new version number) if anyone can help me
thanks
abhiverma866 commented
Just create a new variable that stores the version number of old DIO and then compare the version number value of new DIO with that variable.
//declare variable
static rpl_dio_t store_dio_verison;
//when old DIO arrives
dio.version = buffer[i++]
store_dio_verison = dio.version;
//when new dio arrives
dio.version = buffer[i++]
if (store_dio_verison == dio.version){
printf("DIO MATCH\n");}
else
printf("DIO NOT MATCH\n");