-
Notifications
You must be signed in to change notification settings - Fork 638
Add close callback to network interface #634
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
status = IOT_NETWORK_SUCCESS; | ||
} | ||
|
||
IOT_FUNCTION_CLEANUP_END(); |
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.
Should be IOT_FUNCTION_EXIT_NO_CLEANUP()
to be consistent with the way we use these macros. Same for the mbedtls file.
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
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.
Minor changes about doxygen comments and a question about close reason, otherwise looks good.
libraries/platform/iot_network.h
Outdated
* @param[in] pConnection The connection on which data is available, defined by | ||
* the network stack. | ||
* @param[in] reason The reason the connection was closed | ||
* @param[in] pContext The third argument passed to @ref platform_network_function_setreceivecallback. |
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.
should be platform_network_function_setclosecallback().
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.
good catch, fixed
libraries/platform/iot_network.h
Outdated
* A function with this signature may be set with @ref platform_network_function_setclosecallback | ||
* to be invoked when the network connection is closed. | ||
* | ||
* @param[in] pConnection The connection on which data is available, defined by |
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.
Should read: The connection that is being closed...
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.
good catch, fixed.
*Issue #524
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.