I followed this link :
http://elmurod.net/en/index.php/archives/348
and I edited my new protocol c++ code, but cannot hit the breakpoint there, I have a debug problem. When I debug my code, it shows this line of energy model c++ code,
inline double energy() const { return energy_; }
what I added to my c++ code to get the amount of remaining energy is :
iNode = (MobileNode*)(Node::get_node_by_address(this->src));
iEnergy=iNode->energy_model()->energy();
Can anybody help?