-
Notifications
You must be signed in to change notification settings - Fork 49
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
Detect board #34
Conversation
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.
There was a problem hiding this 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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 👍
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.