You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PO3Module.startMeasure(mac);// responsenotifyListener=DeviceEventEmitter.addListener(PO3Module.Event_Notify,(event)=>{if(event.action===POProfileModule.ACTION_LIVEDA_PO){console.log(event[POProfileModule.PULSE_WAVE_PO]);console.log(event[POProfileModule.PI_PO]);console.log(event[POProfileModule.PULSE_STRENGTH_PO]);console.log(event[POProfileModule.BLOOD_OXYGEN_PO]);console.log(event[POProfileModule.PULSE_RATE_PO]);}elseif(){// final resultconsole.log(event[POProfileModule.PULSE_WAVE_PO]);console.log(event[POProfileModule]);console.log(event[POProfileModule.PI_PO]);console.log(event[POProfileModule.PULSE_STRENGTH_PO]);console.log(event[POProfileModule.BLOOD_OXYGEN_PO]);console.log(event[POProfileModule.PULSE_RATE_PO]);}});
get data stored in the po3 device
PO3Module.getHistoryData(mac);// responsenotifyListener=DeviceEventEmitter.addListener(PO3Module.Event_Notify,(event)=>{if(event.action===POProfileModule.ACTION_NO_OFFLINEDATA_PO){console.log("There is no more data stored in the po3 device.");}elseif(event.action===POProfileModule.ACTION_OFFLINEDATA_PO){constdataArray=event[POProfileModule.OFFLINEDATA_PO];for(leti=0;i<dataArray.length;i++){letofflineData=dataArray[i];console.log(offlineData[POProfileModule.MEASUREMENT_DATE_BP]);console.log(offlineData[POProfileModule.HIGH_BLOOD_PRESSURE_BP]);console.log(offlineData[POProfileModule.LOW_BLOOD_PRESSURE_BP]);console.log(offlineData[POProfileModule.PULSE_BP]);console.log(offlineData[POProfileModule.MEASUREMENT_AHR_BP]);console.log(offlineData[POProfileModule.MEASUREMENT_HSD_BP]);console.log(offlineData[POProfileModule.DATAID]);}}});