Giter Club home page Giter Club logo

Comments (5)

alexa-noxon avatar alexa-noxon commented on July 18, 2024

(1) Yes, at this time the application does need to reestablish the connection after a connection error.
(2) Note that ping/ICMP is blocked by the AWS gateway (so if you tried ‘ping YOUR_ENDPOINT’, you would not expect a response due to security settings ). Is this what you are observing?
(3) Please take a look at prvSetupConnection in aws_mqtt_agent.c to debug where the connection is failing. In other words, is it failing in the TCP connect, the TLS negotation, or the MQTT connection?

Are you using the Windows Simulator or a device? If it is not a credential/policy issue, does the problem go away if you increase value of mqttconfigKEEP_ALIVE_TIMEOUT_TICKS (located in aws_mqtt_agent_config.h) for greater tolerance of network conditions?

To debug further, could you share your configPRINTF outputs? Note that there is a debug log config in aws_mqtt_config.h (mqttconfigENABLE_DEBUG_LOGS) for more information. You could also try to enable logging (https://docs.aws.amazon.com/iot/latest/developerguide/monitoring_overview.html#iot-using-cloudtrail) to view API calls.

from amazon-freertos.

shwetachauhan avatar shwetachauhan commented on July 18, 2024

I am running this on LPC54018 based device,the issue happens when the device has been running for some time (15 minutes to 2 hours) & sending ping request and receiving the ping response continuously as keep alive mechanism. Suddenly after some time the device stop receiving the ping responses and MQQT connection timeout. So, i suspect it is related to security settings.

I will try to increase the mqttconfigKEEP_ALIVE_TIMEOUT_TICKS and see if it improves the condition.

from amazon-freertos.

mradulan avatar mradulan commented on July 18, 2024

Hi @shwetachauhan , did the increase in mqttconfigKEEP_ALIVE_TIMEOUT_TICKS improve the condition?

from amazon-freertos.

abhidixi11 avatar abhidixi11 commented on July 18, 2024

I'm closing this issue, since it looks like almost an year old and there is no response from the poster. Please open another issue if the problem still exists.

from amazon-freertos.

shwetachauhan avatar shwetachauhan commented on July 18, 2024

Hi @shwetachauhan , did the increase in mqttconfigKEEP_ALIVE_TIMEOUT_TICKS improve the condition?

Yes it did , thanks for the suggestion

from amazon-freertos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.