Skip to main content
. 2020 Oct 22;20(21):5970. doi: 10.3390/s20215970
Algorithm 1 WEAR-IT API.
  • Require:sp

  • Ensure:s,wd,datas

  •      {wdi}=scan(sp),i[1k]

  •      connect to a device wd suitable for the application

  •      connect(wd,sp)

  •      identify the sensors in the wearable environment

  •      {sj}=classify(sensors(sp)sensors(wd)),j[1m]

  •      select the needed sensor of type T

  •      s=select({sj},T)

  •      play(s)

  •      measurement takes place

  •      datas=stop(s)

  •      return store(datas,wd)