Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GETTING STARTED WORKING BUT NOT GETTING BPM TO MONITOR , ALTERNATIVE #177

Closed
youngsu5582 opened this issue Jun 22, 2023 · 1 comment
Closed

Comments

@youngsu5582
Copy link

I try Arduino project that send heartbeat data with wifi & socket.
And , I confirm Getting StartedProject properly in sketch.
But , I use Getting_BPM_to_Monitor . pulseSensor.begin() return false

So , I use PulseSensor_BPM_Alternative sketch,
this sketch return error.

In file included from C:\Users\lphan\OneDrive\Documents\Arduino\libraries\PulseSensor_Playground\src/PulseSensorPlayground.h:474,
from C:\Users\lphan\OneDrive\Documents\Arduino\libraries\PulseSensor_Playground\examples\PulseSensor_BPM_Alternative\PulseSensor_BPM_Alternative.ino:41:
C:\Users\lphan\OneDrive\Documents\Arduino\libraries\PulseSensor_Playground\src/utility/Interrupts.h: In function 'boolean PulseSensorPlaygroundDisableInterrupt()':
C:\Users\lphan\OneDrive\Documents\Arduino\libraries\PulseSensor_Playground\src/utility/Interrupts.h:327:1: error: no return statement in function returning non-void [-Werror=return-type]
327 | } // PulseSensorPlaygroundDisableInterrupt
| ^
In file included from C:\Users\lphan\OneDrive\Documents\Arduino\libraries\PulseSensor_Playground\src/PulseSensorPlayground.h:474,
from C:\Users\lphan\OneDrive\Documents\Arduino\libraries\PulseSensor_Playground\examples\PulseSensor_BPM_Alternative\PulseSensor_BPM_Alternative.ino:41:
C:\Users\lphan\OneDrive\Documents\Arduino\libraries\PulseSensor_Playground\src/utility/Interrupts.h: In function 'boolean PulseSensorPlaygroundEnableInterrupt()':
C:\Users\lphan\OneDrive\Documents\Arduino\libraries\PulseSensor_Playground\src/utility/Interrupts.h:394:1: error: no return statement in function returning non-void [-Werror=return-type]
394 | }
| ^

Can you teach me how to use in this case? thx you.

( Sensor : SZH-SSBH-035 )
( HW : wemos d1 esp-wroom-02 esp8266 )

@biomurph
Copy link
Contributor

@youngsu5582
That was a bug that you found! I fixed it. Please use the latest published release v1.8.2.
Now the BPM_Alternative example sketch will compile for ESP8266.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants