Skip to content

Commit

Permalink
nodes_clear
Browse files Browse the repository at this point in the history
  • Loading branch information
SpereShelde committed Dec 6, 2020
1 parent 472cb5b commit 4e9c97c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/veins/modules/application/traci/TraCIDemoRSU11p.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ void TraCIDemoRSU11p::onRM(ReportMessage* frame)
void TraCIDemoRSU11p::handleSelfMsg(cMessage* msg)
{
std::cout << "There are " << connectedNodes.size() << " connected nodes in the range of RSU " << myId << std::endl;
connectedNodes.size();
scheduleAt(simTime() + 2, new cMessage("Connected nodes"));
}
1 change: 1 addition & 0 deletions src1/veins/modules/application/traci/TraCIDemoRSU11p.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ void TraCIDemoRSU11p::handleSelfMsg(cMessage* msg)
ReportMessage* rm = dynamic_cast<ReportMessage*>(msg);
scheduleAt(simTime() + 2, rm);
std::cout << "There are " << connectedNodes.size() << " connected nodes in the range of RSU " << myId << std::endl;
connectedNodes.size();
sendDown(rm->dup());
}

0 comments on commit 4e9c97c

Please sign in to comment.