Research Article
Alert: An Adaptive Low-Latency Event-Driven MAC Protocol for Wireless Sensor Networks
Algorithm 2
Procedure getโP .
(1) for each frame โโdo | (2)โCalculate (and store) for the given with | โโcurrent value of usingโโ(51) | (3)โReduce by expected no. of messages read so far, | โโ that is, | โโ | (4)โif โโthen | (5)โโStore number of frames | (6)โโRepeat last , that is, . | (7)โโBreak from for loop | (8)โend if | (9) end for | (10) Return and |
|