-
Notifications
You must be signed in to change notification settings - Fork 81
ESP-NOW documentation and updating Coap documentation after esp-idf 4.1 update #292
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
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.
Please check my comments.
@peter-pycom : just heads up that please do not merge this once we have discussed all the comments, I am not sure whether this is the correct branch to merge these updates. |
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. It's much clearer to me now. Thanks.
@@ -158,13 +160,14 @@ Registers a callback function which will be called when a new resource has been | |||
* `callback` is the callback to be registered. The callback must have 1 argument: | |||
* `resource` is the new resource which has been created | |||
|
|||
#### Coap.new_client_session(destination, port=5683, protocol=UDP) | |||
#### Coap.new_client_session(address, *, port=5683, psk=None, identity=None) |
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.
new_client_session() has lost the protocol param, but remove_client_session() still has it. intentional?
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.
Yes it is.
When you call new_client_session() the Protocol is figured out based on the PSK and Identity parameters.
When you cal remove_client_session() it may happen that you have 2 Clients connected to the same Port, but one is using UDP the other is DTLS.
I think you guys agreed on a branch for this, right? Can you update the PR? |
New request opened towards correct branch: #387 |
No description provided.