Skip to content

Conversation

@Citrullin
Copy link

Add a simple LED on/off example.

@relu91 relu91 changed the base branch from dev to master August 23, 2021 15:36
@relu91 relu91 changed the base branch from master to dev August 23, 2021 15:37
#include <Arduino.h>
#include "Thing.h"
#include "WebThingAdapter.h"
#include <Thing.h>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logically Thing.h is not a system library, why did you change " to <?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true. I don't know. Copy, paste, I think? ^^

Copy link
Owner

@relu91 relu91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor issue below.

Serial.print("state: ");
Serial.println(state);

if (state) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this code redundant? the pin will be written soon after the action handler execution in the loop function.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true. I didn't really pay much attention to it.

@Citrullin
Copy link
Author

@relu91 Updated it.

@relu91 relu91 merged commit 0285086 into relu91:dev Aug 31, 2021
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

Successfully merging this pull request may close these issues.

2 participants