Comments (10)
espconn_tcp_get_max_con() gives you by default 5.
Acording to the SDK this can be increased espconn_tcp_set_max_con(). Tried with 10 - actually I managed 6 before memory shortage occured. So I guess 5 is more or less the maximum.
from esp_wifi_repeater.
The v3.1.1 seems to have a problem, will view into this next week, currentl I am on a business trip.
The number of Subscriber has three limitations: he number of WiFi clients on the internal AP is restricted to 8, the number of TCP connections has a limit in the lwip (maybe 4-5 as default) and the table of subscribed topics is limited (currently 50, user_main()).
You probably refere to the second limitation. Will try to compile a version with 8-10) TCP-clients next week.
from esp_wifi_repeater.
@martin-ger Is the LmacRxBlk:1 error related to the number of TCP connections? I keep getting this error spammed in the serial monitor console. I googled it but i still can't figure out what it really means.
Links2004/arduinoWebSockets#57
esp8266/Arduino#2176
esp8266/Arduino#928
from esp_wifi_repeater.
I found problem like this too.
When I try on uMQTT3.1.1 broker and with MQTT-SPY (mqtt client 3.1.1/3.1)
I can connected to broker ONLY 5 differenct "mqtt-client id" on the same ip connected to wifi.
Thank you.
from esp_wifi_repeater.
I tried by recompile with espconn_tcp_get_max_con(10) , however can only 5 clients
Feature request
- more than 10 clients
- bridge uMQTT to outside (on Internet) Broker.
Thank you again.
from esp_wifi_repeater.
@TridentTD If by client do you mean the device connected to the ap:
- espconn_tcp_get_max_con() Just returns an uint8 and doesn't have any argument
- Maybe do you mean espconn_tcp_set_max_con(). Anyway, this function isn't related to the number of clients. What are you looking for i think is this
- Keep in mind the esp has its own hardware limitations
@martin-ger I added espconn_tcp_set_max_con(10); here and seems like now i get not so many LmacRxBlk:1 as before.
from esp_wifi_repeater.
Sorry , I miss type .. I tried by espconn_tcp_set_max_con(10);
https://github.com/martin-ger/esp_wifi_repeater/blob/uMQTT_broker/user/user_main.c#L1842
My scenario.
[Scenario]
192.168.1.1 WiFi Router
192.168.1.2 My computer ( connect to WiFi Router as STATION)
192.168.1.3 ESP8266 with uMQTT broker (ESP8266 connect to Router as STATION)
My computer (192.168.1.2) is contact to ESP8266's broker (192.168.1.3) by MQTT-SPY as mqtt-client ,
However MQTT-SPY on my computer can create mqtt-client to connect to ESP's broker ( recompiled with espconn_tcp_set_max_con(10); ) still only max 5 mqtt-clients.
from esp_wifi_repeater.
bridge uMQTT to outside (on Internet) Broker.
For it to work outside I think you just need to port forward / port map
from esp_wifi_repeater.
@svilex
Thank you.
from esp_wifi_repeater.
The max number of TCP connections can be increased with espconn_tcp_set_max_con() but in the repeater there is actually not much RAM left. I moved the project to https://github.com/martin-ger/esp_mqtt without the NAPT functionality (still the uMQTT broker can connect in both networks STA and SoftAP). I managed at least 8 connections there...
from esp_wifi_repeater.
Related Issues (20)
- How To Connecte A Wifi Which Has Space HOT 2
- Setting the default output status of GPIOs HOT 2
- docker-container Permission denied: '/dev/ttyUSB0'
- Automesh startet nicht nach Stromausfall HOT 2
- To many password characters for mqtt password?
- esp8266 stuck in wifi3 802.11g
- Clearify the README.md HOT 2
- Can not use "set mqtt_command_topic" ower MQTT.
- WiFi
- After Flash Wemos mini D1 => no Accespoint found HOT 12
- Login with username and password
- Is there a non-NAT version of the extender? HOT 1
- ARIF
- No AccessPoint after Flashing and rebooting on ESP-01.
- Support for W5500
- High amount of NTP requests - How to set date / time ? HOT 2
- continiously disonnect reconnect / status_led wrong ? HOT 1
- is there any way to add firewall to this porject HOT 1
- Ino file
- Some DHCP questions are not answered in documentation.
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 esp_wifi_repeater.