Skip to main content
. 2020 Oct 22;20(21):5970. doi: 10.3390/s20215970
Algorithm 2 Distributed data collection with WEAR-IT.
  • {spi}=search(area,N)

  • for allido

  •       {sj}=sensors(spi)

  •       st=select({sj},TEMPERATURE)

  •       if st<>NULL then

  •              t=play(st)

  •       end if

  •       sr=select({sj},PRESSURE)

  •       if sr<>NULL then

  •              p=play(sr)

  •       end if

  •       sh=select({sj},HUMIDITY)

  •       if sh<>NULL then

  •              h=play(sh)

  •       end if

  •       if t<>NULL then

  •              store(spi.st,t)

  •       end if

  •       if p<>NULL then

  •              store(spi.sr,p)

  •       end if

  •       if h<>NULL then

  •              store(spi.sh,h)

  •       end if

  • end for