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

Detect board #34

Merged
merged 3 commits into from
Jun 25, 2019
Merged

Detect board #34

merged 3 commits into from
Jun 25, 2019

Conversation

vveljko
Copy link
Contributor

@vveljko vveljko commented Jun 16, 2019

Only boards that have a default, intrinsic way of handling
networking (like WiFi boards, such as MKR1000) are recognized.
Also, only boards we could test or that have well-known
implementation and good documentation are recognized.

vveljko added 3 commits May 25, 2019 22:09
Don't build M4 board at all - it doesn't have native networking,
test is not useful, yet it fails on ArduinoCI for some unknown
reason.

Don't build ESP32 w/WiFi101.h examples, they are not designed
to work. It was strange they actually worked before.
Only boards that have a default, intrinsic way of handling
networking (like WiFi boards, such as MKR1000) are recognized.
Also, only boards we could test or that have well-known
implementation and good documentation are recognized.
@vveljko vveljko requested a review from davidnub June 17, 2019 20:40
Copy link

@davidnub davidnub left a comment

Choose a reason for hiding this comment

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

I'm curious about the while(true) statement.

auto client = PubNub.publish(channel, msg);
if (!client) {
Serial.println("publishing error");
delay(1000);

Choose a reason for hiding this comment

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

It would be better if we used a variable for the delay amount so we can change it all at once if we needed to.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, that's just the thing, sometimes you actually want to make them different. Here they are the same mostly by accident/default. Arduino is infamous for such things, it's not a professional, but a "hobbyist" platform.

Copy link

@davidnub davidnub left a comment

Choose a reason for hiding this comment

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

Nice! 👍

@vveljko vveljko merged commit 7cad1a2 into master Jun 25, 2019
@vveljko vveljko deleted the detect_board branch June 25, 2019 11:49
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