Giter Club home page Giter Club logo

esp-emqtt5's Introduction

esp-eMQTT5

A MQTT v5.0 client for ESP32 platform based on eMQTT5 library.

It's a fully compliant MQTT5 client to use in your projects. Please refer to library's documentation for pros and cons of this client.

esp-emqtt5's People

Contributors

x-ryl669 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

fangms koson

esp-emqtt5's Issues

Port to ESP32 on Arduino code base

Arduino code base is really lacking any form of MQTT5.0 client libraries, I think this could extremely useful not just to me but too many other people running this software on a host of the latest boards.

Closing the AUTH exchange.

I don't quite get how to end the AUTH exchange when using the enhaced authentication feature. I'll explain:

First I send a connect using the connectTo method including the authData and authMethod properties.

If the authMethod is supported by the broker, it sends back and AUTH packet with reason code 24, continue authentication, this triggers the authReceived function back in the client to process the data. So far, so good.

Then, I send the response back to the broker with the auth method, this sends an AUTH packet to the broker with reason code 24 continue authentication and the data needed to end the authentication in the broker.

Lastly, my broker sends back a CONNACK packet with reason code 0 success if the data is correct or 135 not authorized if it's not.

At this point, the auth method fails with an error code 130 Protocol error.

Now, if I'm reading your code correctly, after the auth method sends the AUTH packet, it waits for the response, but only considers the case of the response being another AUTH packet and not a CONNACK one, so it dismiss the packet as a Protocol Error.

Shouldn't the auth method consider the case of the response from the broker being a CONNACK packet or there's something else I'm missing?

Thank you in advance.

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.