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

  • Ensure:s,wd,datas

  •      Comment: scan the wearable environment

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

  •      Comment: connect to PulseOnTM suitable for the application

  •      connect(PulseOnTM,sp)

  •      Comment: identify the sensors in the PulseOnTM wearable device

  •      {sPulseOnTMj}=classify(sensors(PulseOnTM)),j[1m]

  •      Comment: select the needed sensor of type HEART_RATE

  •      s=select({sPulseOnTMj},HEART_RATE)

  •      Comment: measurement takes place for 30 min at default frequency; stop is not mandatory

  •      play(s,t0,t0+30 min)

  •      Comment: data gathered by HR sensor are stored in XLS format

  •      return store(s,PulseOnTM,Pathdatas,datas,XLS)