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

Pause getMinute() #37

Open
joaouzeda opened this issue Nov 10, 2023 · 1 comment
Open

Pause getMinute() #37

joaouzeda opened this issue Nov 10, 2023 · 1 comment

Comments

@joaouzeda
Copy link

joaouzeda commented Nov 10, 2023

I´m tring to make an time counter with a trigger to start and pause, i came witih this code but the counter maintain even if the x < 50

void horimetro(){
  
  if (x>= 50){
    min1 = rtc.getMinute();  
    Serial.println(min1);
    sprintf(charhour,"%ld", min1);
    client.publish(topic2, charhour);
  }else {
    sprintf(charhour,"%ld", min1);
    client.publish(topic2, charhour);
  } 
}
@fbiego
Copy link
Owner

fbiego commented Mar 26, 2024

Can you share more context, what are you trying to achieve? Do you want to publish at intervals?

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