Step by Step Part - 4
Step by Step Part - 4
Step by Step Part - 4
+
Step by Step
Part - 4
By
Mohammed Amer AlBatati
code.
registered with
Define_Module()
always be put
and not header
Messages Sources
The message can arrive:
1. From another module or
2. From the same module (self-
Why??
100mW).
Each transmission operation consumes energy
(e.g.; 0.8mW per transmission).
Make the initial energy variable.
Make the transmission interval variable.
When a node cannot transmit a packet (the
remaining energy is less than 0.8mW), then it
stops sending data (dies).
Is it
important??
fine.
The events are shown in the Tkenv view.
WATCH Macro
OMNeT++ provides WATCH() and a set of
be
Ya
I know!
name .