-
Notifications
You must be signed in to change notification settings - Fork 82
CoAp: Addressing review findings #193
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
Conversation
lilycey
left a comment
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.
Only three tiny changes
| event = s[1] | ||
| if(event & uselect.POLLIN): | ||
| # Check if the socket belongs to Coap module | ||
| # Check if the socket belongs to CoAp module |
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.
First comment: Check if the socket belongs to the CoAp module
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.
Fixed.
| wlan.connect('your-ssid', auth=(WLAN.WPA2, 'your-key')) | ||
|
|
||
| # Initialize Coap module | ||
| # Initialize CoAp module |
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.
Second comment: # Initialise the CoAp module
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.
Fixed.
| # Initialize CoAp module | ||
| Coap.init(str(wlan.ifconfig()[0]), service_discovery=True) | ||
|
|
||
| # Add a resource with default value and plain text content format |
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.
Third: Add a resource with a default value and a plain text content format
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.
Fixed.
lilycey
left a comment
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.
All looks good to me!
Fixes for the review findings here: e2eca78