Comments (8)
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.
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.
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.
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.
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.
Generally looks good. Do you use correct terminal settings? Try Ctrl-M as line end.
from umqttbroker.
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)
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.
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)
- disconnect and reconnect 6-10 time,the broker will cant't be connected HOT 1
- Client count HOT 8
- How to restart the broker?
- Ignored espconn_send() return (error) value.
- Broker Crashing when wifi disconnects HOT 2
- Accessing via mosquitto_sub/pub. How? HOT 1
- Broker doesn't accept new connections after 24h running? HOT 4
- Locally published topics do not appear to retain
- Compiling Error HOT 1
- ESP32 Port? HOT 1
- CRASH BROKER ((( WHY ?
- Ip address MQTT broker
- Compiling error using uMQTTBroker HOT 1
- Partial message / disconnections HOT 1
- Connection problem
- problem with using lwip:v2
- mqtt no user and pass HOT 1
- Broker cannot be connected after client disconnect
- Cannot send HTTPClient POST with MQTT
- Using ESP8266 as MQTT broker and datalogger HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from umqttbroker.