Giter Site home page Giter Site logo

Comments (5)

github-actions avatar github-actions commented on June 29, 2024

Hi @z3r0g2017! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙

from zephyr.

rlubos avatar rlubos commented on June 29, 2024

mqtt_input() returns -ENOTCONN (-128) in case underlying TCP/TLS connection was closed. If you're using qemu_86, it's fairly simple to monitor network traffic with wireshark, just attach it to the corresponding network interface. That should shed some light on whether it's just the peer closing the connection for whatever reason, or some bug in the networking stack.

from zephyr.

z3r0g2017 avatar z3r0g2017 commented on June 29, 2024

I got it to work (hack) with qos1 by handling the mqtt disconnect event which is a noop in the original source code and using a return instead. qos0 is the default when run with qemu_x86. What is the correct config to use for qos1 in the prj.conf or the KConfig ?

from zephyr.

rlubos avatar rlubos commented on June 29, 2024

What is the correct config to use for qos1 in the prj.conf or the KConfig ?

There's CONFIG_AWS_QOS defined in the sample's Kconfig file.

by handling the mqtt disconnect event which is a noop in the original source code and using a return instead.

Looking at the sample's code, this change should literally make no difference, the callback returns anyway just after getting MQTT_EVT_DISCONNECT event.

from zephyr.

rlubos avatar rlubos commented on June 29, 2024

@z3r0g2017 Do we need to keep this open, given you got the sample to work? I don't know what the bug would be here.

If you still need help here, please provide wireshark logs showing when the client disconnects. Otherwise, please close the issue.

from zephyr.

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.