Skip to content

Commit

Permalink
Updated .adoc with functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
adelgadoj3 committed Apr 3, 2024
1 parent c09d292 commit 21ffd10
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,15 @@ image::LED_circuit.png[]

===== Testing

Use: `curl http://localhost:8080/LED/LEDOn` to test the component. This will cause the LED to light.
Use: `curl http://localhost:8080/led/ledOn` to test the component. This will cause the LED to light.

===== Functionality
Use: `curl http://localhost:8080/led` to test the component. The following commands will test the component:

* `/ledOn` - Turns the led on.
* `/ledOff` - Turns the led off.
* `/switchState` - Switches the state of the led.
* `/blink/{duration}/` - Causes the led to blink for the desired duration and TimeUnit.

===== Troubleshooting
- LED not lighting: Check the connections, and ensure the LED is placed correctly. Double-check the power source.
Expand Down

0 comments on commit 21ffd10

Please sign in to comment.