Skip to main content
. 2022 Aug 31;22(17):6584. doi: 10.3390/s22176584
Algorithm 6 Confirmation of Node Recharging
  • Input: node(j) request to Max or BS

  • Output: Energy Transfer to node(j)
    • 1:
      node(j) request to Max of BS
    • 2:
      if NN is BS then
    • 3:
          while node(j).RE ≠ FULL do
    • 4:
              Send the 1Eu of energy to node(j)
    • 5:
          end while
    • 6:
      end if
    • 7:
      if Max == high or low communication module node then
    • 8:
          calculate Threshold
    • 9:
          if Max > Threshold then
    • 10:
              transfer 1Eu to node(j)
    • 11:
          end if
    • 12:
      end if