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

Reconnect handling #37

Conversation

tim-nordell-nimbelink
Copy link

Fixes for #33.

Report out when the mBedTLS library reports that the network layer has
been disconnected out from the iot_tls_write(...) and iot_tls_read(...)
calls.

Signed-off-by: Tim Nordell <[email protected]>
The various instances of utilizing the iot_tls_read(...) and
iot_tls_write(...) calls should all inform their users of the
errors these functions can emit.  This helps for proper management
of interface errors, such as a network disconnection.
…loop

Move the _aws_iot_mqtt_handle_disconnect(...) call to cover both
the aws_iot_mqtt_internal_cycle_read(...) call and the
_aws_iot_mqtt_keep_alive(...) call.
This commit moves the disconnect handler into a central code location
for a future patch in this series that also invokes the handler from
the send packet path (and not just the receive packet path).
The _aws_iot_mqtt_internal_yield(...) function has some common
disconnect handling code in it yet.  Move this to its own function,
and call this instead of the direct disconnect method.
Use the new common internal API for handling disconnects to handle the
disconnect from a publish call.
@chaurah
Copy link
Contributor

chaurah commented Jul 29, 2016

This pull request will be included in the next release of the SDK. Further discussion on the corresponding issue here - #33

@chaurah
Copy link
Contributor

chaurah commented Sep 19, 2016

Fixed in v2.1.1 of the SDK. Closing.

@chaurah chaurah closed this Sep 19, 2016
tgsong pushed a commit to tgsong/aws-iot-device-sdk-embedded-C that referenced this pull request Nov 13, 2020
OTA Over HTTP demo implementation
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