From ff7b57a420d86a6b0b311c4a29276610ee47146b Mon Sep 17 00:00:00 2001 From: Haylas <104948588+haylas@users.noreply.github.com> Date: Wed, 14 Feb 2024 15:06:40 +0300 Subject: [PATCH] Uptade cpp Descriptions added --- examples/Wallet Bridge 1/src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/Wallet Bridge 1/src/main.cpp b/examples/Wallet Bridge 1/src/main.cpp index 8fd2ae1..920a5bd 100644 --- a/examples/Wallet Bridge 1/src/main.cpp +++ b/examples/Wallet Bridge 1/src/main.cpp @@ -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]; @@ -184,6 +185,7 @@ 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); @@ -191,4 +193,4 @@ void blink() Serial.print("Blink: "); Serial.println(blinkLEDOn); blinkLEDOn = !blinkLEDOn; -} \ No newline at end of file +}