From 5e1431c4067e41c57a239923df4326cf58342c36 Mon Sep 17 00:00:00 2001 From: martin-ger Date: Sat, 19 May 2018 15:45:31 +0200 Subject: [PATCH] Recommend lwip 1.4 (see #12 ) --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 7e8bc48..115d277 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,10 @@ MQTT Broker library for ESP8266 Arduino You can start an MQTT broker in any ESP Arduino project. Just clone (or download the zip-file and extract it) into the libraries directory of your Arduino ESP8266 installation. +**Important: Use the setting "lwip Variant: 1.4 High Bandwidth" in the "Tools" menu** + +lwip 2.0 has some strange behaviour that causes the socket to block after 5 connections. + Thanks to Tuan PM for sharing his MQTT client library https://github.com/tuanpmt/esp_mqtt as a basis with us. The modified code still contains the complete client functionality from the original esp_mqtt lib, but it has been extended by the basic broker service. The broker does support: @@ -41,6 +45,7 @@ bool MQTT_local_publish(uint8_t* topic, uint8_t* data, uint16_t data_length, uin bool MQTT_local_subscribe(uint8_t* topic, uint8_t qos); bool MQTT_local_unsubscribe(uint8_t* topic); + void MQTT_server_onData(MqttDataCallback dataCb); ```