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

Uptade cpp #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/Wallet Bridge 1/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ std::string handleTCPAPI(APIReturn *apiReturn)
}
}

// resetChallenge(): Aim is to generate a random challenge value, convert it to hexadecimal, and append it to the global challenge string.
void resetChallenge()
{
char buffer[32];
Expand All @@ -184,11 +185,12 @@ void resetChallenge()
challenge += itoa(challengeVal, buffer, 16);
}

// blink(): Aim is to toggle the state of a blue LED and print its state to the serial monitor.
void blink()
{
digitalWrite(BLUE_LED, blinkLEDOn);

Serial.print("Blink: ");
Serial.println(blinkLEDOn);
blinkLEDOn = !blinkLEDOn;
}
}