Skip to main content
. 2022 Sep 8;22(18):6806. doi: 10.3390/s22186806
Algorithm 6: Communications between Nodes (Send and Read Messages by Destination)
Begin
  Send (sender, receiver, string memory msg)public ControlOf(sender, receiver) //
  send message {
     boxes[receiver] = msg; }
  ReadMSG (addr) OnlyConcernedObject(addr)public returns (string memory) //
  Read message by intended destination
   { return boxes[addr];
   }
  End;