Skip to main content
. 2018 Aug 27;18(9):2819. doi: 10.3390/s18092819
Algorithm 2Generation phase: IoB-DTN based on data aggregation.
  • 1:

    At each sensor reading period

  • 2:

    Generate a packet p with the readings

  • 3:

    if (Δ (p, p) < (Δ area || Δ period || (Δ area + Δ period) ) ) then

  • 4:

     Aggregate p with the packet p

  • 5:

    else

  • 6:

    if Buffer management provides a slot then

  • 7:

      Store pN0 in the buffer [N0 copies of p are stored]

  • 8:

    end if

  • 9:

    end if