Code Monkey home page Code Monkey logo

Comments (8)

martin-ger avatar martin-ger commented on May 23, 2024

An MQTT broker is waiting for incoming conections, i.e. it does nothing with the clients as long as they are not connecting - it even doesn't know about them.

I assume your problem might be the lwip - did you select "lwip Variant: 1.4 High Bandwidth" when building the broker? If not - the new lwip implementation in Arduino IDE causes problems with reconnects.

You might also try my precompiled firmware at: https://github.com/martin-ger/esp_mqtt . It runs quite robust and has a lot more options than the basic Arduino implementation.

from umqttbroker.

LZHenry avatar LZHenry commented on May 23, 2024

Thank you for the kind response. I saw last night the previous conversation about the lwip. Do not yet know how to select the 1.4 variant but will investigate tonight. I do not build with the Arduino IDE; using visual studio 2017 (not VS Code) which uses all the Arduino libraries. I will be searching later how to do this selection for VS and for the IDE. If you have the patience to point me to how to select the iwip variant, that could save me a LOT of time.
Thanks for the broker implementation... this could also save a project I put on the shelf last April because of similar stay alive connection issues.

from umqttbroker.

martin-ger avatar martin-ger commented on May 23, 2024

Sorry, no idea how to select this in VS - in Arduino it is a menue item. There it selects the following settings:

generic.menu.LwIPVariant.Prebuilt.build.lwip_lib=-llwip_gcc
generic.menu.LwIPVariant.Prebuilt.build.lwip_flags=-DLWIP_OPEN_SRC

from umqttbroker.

LZHenry avatar LZHenry commented on May 23, 2024

Thanks again... I will be working tonight. Also did some research; this will help. Next I will try to load your binary. This will allow me to get a stable version operating. But, I still want to add custom items to my broker. LZH

from umqttbroker.

LZHenry avatar LZHenry commented on May 23, 2024

Please excuse me for having to ask such BASIC questions. However, I can not discover how to use the serial commands to reset the broker parameters.

Successfully loaded the bin files:
Shown below, I worked for several hours today attempting several formats for help and set commands. Not even able to get HELP to work?
I can not determine the format to get more than a echo from the ESP.
I know it must be simple and staring at me in your description?????

uMQTT Broker V2.0.7 starting

No config found, saving default in flash
Loading default configuration
Saving configuration
Starting Console TCP Server on port 7777
Max number of TCP clients: 15
mode : sta(b4:e6:2d:14:28:32) + softAP(b6:e6:2d:14:28:32)
add if0
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
help:
help:
help
help
network:
network:
set network 10.0.4.1:

set network 10.0.4.1:
network:
network:

from umqttbroker.

martin-ger avatar martin-ger commented on May 23, 2024

Generally looks good. Do you use correct terminal settings? Try Ctrl-M as line end.

from umqttbroker.

LZHenry avatar LZHenry commented on May 23, 2024

Have your binary loaded and talking. Some additional help for others is below.

Help #1
After flashing, serial communication was not returning the “CMD>” prompt until things were properly setup in the tool.
Using Termite, MUST select “Append CR-LF”. Now the micro properly returns a “CMD>” to every request. (Visual Studio requires a similar setting change)

image

Help #2 Loading with QIO/DIO
This was confusing. FLASHING with QIO showed a good load but there is NO serial communication possible. When the load looks good, it is easy to waste a lot of time trying commends. Loading with DIO fixes all issues; serial communication is operating. Do not understand this; hoping my observation may help others.

from umqttbroker.

LZHenry avatar LZHenry commented on May 23, 2024

System operating very well and stable. Next item is to enable more than the 8 standard clients.

Closing this thread. THank you very much.

from umqttbroker.

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.